/* ========================================
   PRODUCT GALLERY SECTION - NO CONFLICTS
   Prefix: mdpg- (MD Product Gallery)
   ======================================== */

.mdpg-section {
    position: relative;
    padding: 70px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
    overflow: hidden;
}

.mdpg-header {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.mdpg-header.mdpg-visible {
    opacity: 1;
    transform: translateY(0);
}

.mdpg-tag {
    display: inline-block;
    margin-bottom: 16px;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    font-family: 'League Spartan', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.mdpg-header h2 {
    font-family: 'League Spartan', sans-serif;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
    color: #112330;
    margin-bottom: 18px;
}

.mdpg-header h2 span {
    color: #dc2626;
    position: relative;
}

.mdpg-header h2 span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.2), rgba(201, 169, 97, 0.22));
    z-index: -1;
    border-radius: 20px;
}

.mdpg-header p {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    line-height: 1.85;
    color: #5b675f;
    max-width: 620px;
    margin: 0 auto;
}

/* Slider Container */
.mdpg-slider-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.mdpg-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.mdpg-slider {
    display: flex;
    gap: 25px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px;
}

/* Product Card */
.mdpg-card {
    min-width: calc(25% - 19px);
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
}

.mdpg-card.mdpg-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.4s ease;
}

.mdpg-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Discount Badge */
.mdpg-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #dc2626;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'League Spartan', sans-serif;
    font-size: 14px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    animation: mdpgPulse 2s ease-in-out infinite;
}

@keyframes mdpgPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Wishlist Heart */
.mdpg-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mdpg-wishlist i {
    font-size: 20px;
    color: #dc2626;
    transition: transform 0.3s ease;
}

.mdpg-wishlist:hover {
    transform: scale(1.1);
    background: #dc2626;
}

.mdpg-wishlist:hover i {
    color: #fff;
    transform: scale(1.2);
}

/* Product Image */
.mdpg-image-container {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: #f5f5f5;
}

.mdpg-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.mdpg-card:hover .mdpg-image-container img {
    transform: scale(1.1);
}

/* Quick View Overlay */
.mdpg-quick-view {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17, 35, 48, 0.95);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: bottom 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.mdpg-card:hover .mdpg-quick-view {
    bottom: 20px;
}

/* Product Info */
.mdpg-info {
    padding: 20px;
    text-align: center;
}

.mdpg-label {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #2f7d32, #4caf50);
    color: #fff;
    font-family: 'League Spartan', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 6px;
    margin-bottom: 10px;
}

.mdpg-title {
    font-family: 'League Spartan', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #112330;
    margin: 10px 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation Arrows */
.mdpg-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #c9a961;
    /*background: linear-gradient(135deg, #2f7d32, #4caf50);*/
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(47, 125, 50, 0.3);
}

.mdpg-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    background: #1a1a1a;
    color: #fff;
    box-shadow: 0 12px 30px rgba(47, 125, 50, 0.4);
}

.mdpg-arrow-left {
    left: 0;
}

.mdpg-arrow-right {
    right: 0;
}

.mdpg-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Lightbox Modal */
.mdpg-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mdpg-lightbox.mdpg-active {
    display: flex;
    opacity: 1;
}

.mdpg-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.mdpg-lightbox.mdpg-active .mdpg-lightbox-content {
    transform: scale(1);
}

.mdpg-lightbox-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.mdpg-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: #112330;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mdpg-lightbox-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: #dc2626;
    color: #fff;
}

.mdpg-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: #112330;
    transition: all 0.3s ease;
}

.mdpg-lightbox-nav:hover {
    background: #2f7d32;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.mdpg-lightbox-prev {
    left: 20px;
}

.mdpg-lightbox-next {
    right: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
    .mdpg-card {
        min-width: calc(33.333% - 17px);
    }
}

@media (max-width: 900px) {
    .mdpg-header h2 {
        font-size: 38px;
    }
    
    .mdpg-card {
        min-width: calc(50% - 13px);
    }
    
    .mdpg-slider-wrapper {
        padding: 0 50px;
    }
}

@media (max-width: 600px) {
    .mdpg-section {
        padding: 60px 15px;
    }
    
    .mdpg-header h2 {
        font-size: 30px;
    }
    
    .mdpg-card {
        min-width: 100%;
    }
    
    .mdpg-slider-wrapper {
        padding: 0 45px;
    }
    
    .mdpg-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .mdpg-image-container {
        height: 250px;
    }
}


/* ========================================
   PRODUCT GALLERY SECTION - NO CONFLICTS
   Prefix: mdpg- (MD Product Gallery)
   ======================================== */

.mdpg-section- {
    position: relative;
    padding: 70px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
    overflow: hidden;
}

.mdpg-header- {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.mdpg-header-.mdpg-visible- {
    opacity: 1;
    transform: translateY(0);
}

.mdpg-tag- {
    display: inline-block;
    margin-bottom: 16px;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    font-family: 'League Spartan', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.mdpg-header- h2 {
    font-family: 'League Spartan', sans-serif;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
    color: #112330;
    margin-bottom: 18px;
}

.mdpg-header- h2 span {
    color: #dc2626;
    position: relative;
}

.mdpg-header- h2 span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.2), rgba(201, 169, 97, 0.22));
    z-index: -1;
    border-radius: 20px;
}

.mdpg-header- p {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    line-height: 1.85;
    color: #5b675f;
    max-width: 620px;
    margin: 0 auto;
}

/* Slider Container */
.mdpg-slider-wrapper- {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.mdpg-slider-container- {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.mdpg-slider- {
    display: flex;
    gap: 25px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px;
}

/* Product Card */
.mdpg-card- {
    min-width: calc(25% - 19px);
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
}

.mdpg-card-.mdpg-visible- {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.4s ease;
}

.mdpg-card-:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Discount Badge */
.mdpg-badge- {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #dc2626;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'League Spartan', sans-serif;
    font-size: 14px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    animation: mdpgPulse 2s ease-in-out infinite;
}

@keyframes mdpgPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Wishlist Heart */
.mdpg-wishlist- {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mdpg-wishlist- i {
    font-size: 20px;
    color: #dc2626;
    transition: transform 0.3s ease;
}

.mdpg-wishlist-:hover {
    transform: scale(1.1);
    background: #dc2626;
}

.mdpg-wishlist-:hover i {
    color: #fff;
    transform: scale(1.2);
}

/* Product Image */
.mdpg-image-container- {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.mdpg-image-container- img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.mdpg-card-:hover .mdpg-image-container- img {
    transform: scale(1.1);
}

/* Quick View Overlay */
.mdpg-quick-view- {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17, 35, 48, 0.95);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: bottom 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.mdpg-card-:hover .mdpg-quick-view- {
    bottom: 20px;
}

/* Product Info */
.mdpg-info- {
    padding: 10px;
    text-align: center;
}

.mdpg-label- {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #2f7d32, #4caf50);
    color: #fff;
    font-family: 'League Spartan', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 6px;
    margin-bottom: 10px;
}

.mdpg-title- {
    font-family: 'League Spartan', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #112330;
    margin: 10px 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation Arrows */
.mdpg-arrow- {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #c9a961;
    /*background: linear-gradient(135deg, #2f7d32, #4caf50);*/
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(47, 125, 50, 0.3);
}

.mdpg-arrow-:hover {
    transform: translateY(-50%) scale(1.1);
    background: #1a1a1a;
    color: #fff;
    box-shadow: 0 12px 30px rgba(47, 125, 50, 0.4);
}

.mdpg-arrow-left- {
    left: 0;
}

.mdpg-arrow-right- {
    right: 0;
}

.mdpg-arrow-:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Lightbox Modal */
.mdpg-lightbox- {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mdpg-lightbox-.mdpg-active- {
    display: flex;
    opacity: 1;
}

.mdpg-lightbox-content- {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.mdpg-lightbox-.mdpg-active- .mdpg-lightbox-content- {
    transform: scale(1);
}

.mdpg-lightbox-image- {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.mdpg-lightbox-close- {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: #112330;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mdpg-lightbox-close-:hover {
    transform: rotate(90deg) scale(1.1);
    background: #dc2626;
    color: #fff;
}

.mdpg-lightbox-nav- {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: #112330;
    transition: all 0.3s ease;
}

.mdpg-lightbox-nav-:hover {
    background: #2f7d32;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.mdpg-lightbox-prev- {
    left: 20px;
}

.mdpg-lightbox-next- {
    right: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
    .mdpg-card- {
        min-width: calc(33.333% - 17px);
    }
}

@media (max-width: 900px) {
    .mdpg-header- h2 {
        font-size: 38px;
    }
    
    .mdpg-card- {
        min-width: calc(50% - 13px);
    }
    
    .mdpg-slider-wrapper- {
        padding: 0 50px;
    }
}

@media (max-width: 600px) {
    .mdpg-section- {
        padding: 60px 15px;
    }
    
    .mdpg-header- h2 {
        font-size: 30px;
    }
    
    .mdpg-card- {
        min-width: 100%;
    }
    
    .mdpg-slider-wrapper- {
        padding: 0 45px;
    }
    
    .mdpg-arrow- {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .mdpg-image-container- {
        height: 250px;
    }
}

