/* 
    FlorianBD Package Details Premium CSS
    Modern Responsive Luxury Design
    Enhanced for Mobile & Desktop Perfection
*/

:root {
    --primary: #1B5E20;
    --primary-dark: #0d3d14;
    --primary-light: #4caf50;
    --accent: #66BB6A;
    --bg-light: #F9FAFB;
    --bg-gradient: linear-gradient(180deg, #ffffff 0%, #f0f7f4 100%);
    --text-dark: #0B3D2E;
    --text-gray: #5a7d6e;
    --gold: #C8A951;
    --white: #ffffff;
    --shadow-soft: 0 10px 40px rgba(27, 94, 32, 0.08);
    --shadow-medium: 0 20px 60px rgba(27, 94, 32, 0.12);
    --shadow-strong: 0 30px 80px rgba(27, 94, 32, 0.15);
    --border-soft: rgba(0, 0, 0, 0.05);
    --transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 40px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

.main-content {
    padding: 0 0 140px;
    margin-top: var(--app-nav-height, 60px);
    min-height: 100vh;
}

/* Hero Section - Enhanced */
.detail-hero {
    padding: 60px 20px 60px;
    text-align: center;
    background: var(--bg-gradient);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 187, 106, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.detail-visual-hub {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 35px;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.15));
}

@media (min-width: 768px) {
    .detail-visual-hub {
        width: 360px;
        height: 360px;
    }
}

.detail-visual-hub .bg-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(102, 187, 106, 0.12) 0%, transparent 65%);
    z-index: 1;
    animation: blobPulse 4s infinite ease-in-out;
}

@keyframes blobPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }
}

.detail-visual-hub img {
    position: relative;
    z-index: 2;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: floatDetail 6s infinite ease-in-out;
    transition: transform 0.5s ease;
}

.detail-visual-hub:hover img {
    transform: scale(1.05);
}

@keyframes floatDetail {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.offer-label {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 10px 32px;
    border-radius: 50px;
    font-weight: 800;
    font-size: clamp(12px, 3vw, 14px);
    box-shadow: 0 12px 30px rgba(27, 94, 32, 0.3);
    z-index: 10;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: var(--transition);
}

.offer-label.emerald {
    background: linear-gradient(135deg, #10b981, #059669);
}

.offer-label.ruby {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.offer-label.amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.offer-label.sapphire {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Image Gallery Thumbnails - Enhanced */
.image-gallery-thumbs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 0 20px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .image-gallery-thumbs {
        gap: 10px;
    }
}

.thumb-item {
    width: 65px;
    height: 65px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(27, 94, 32, 0.1);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    background: white;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .thumb-item {
        width: 55px;
        height: 55px;
    }
}

.thumb-item:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.thumb-item.active {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.25);
    transform: scale(1.08);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumb-item:hover img {
    transform: scale(1.1);
}

.detail-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: #052e1f;
    line-height: 1.2;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.detail-tagline {
    font-size: clamp(14px, 3vw, 16px);
    color: var(--text-gray);
    margin-bottom: 25px;
    font-weight: 500;
    opacity: 0.9;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections - Enhanced Spacing */
.detail-section {
    padding: 50px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .detail-section {
        padding: 35px 16px;
    }
}

.section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

@media (max-width: 480px) {
    .section-head {
        gap: 12px;
        margin-bottom: 22px;
    }
}

.section-head i {
    color: var(--primary);
    font-size: 24px;
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.1), rgba(102, 187, 106, 0.15));
    padding: 12px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.08);
}

@media (max-width: 480px) {
    .section-head i {
        font-size: 20px;
        padding: 10px;
    }
}

.section-head h3 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

/* Info Cards Grid - Responsive */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .info-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid white;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

@media (max-width: 480px) {
    .info-card {
        padding: 16px 14px;
        border-radius: var(--radius-md);
    }
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(102, 187, 106, 0.25);
}

.info-card .label {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    line-height: 1.4;
}

.info-card .value {
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit';
    word-break: break-word;
}

/* Verified Badge Logic for Package page */
.verified-logo-container {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.verified-badge-pill {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #00A651;
    border: 1.5px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: white;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0, 166, 81, 0.3);
}

/* Inclusion List - Responsive Grid */
.inclusion-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

@media (max-width: 480px) {
    .inclusion-list {
        grid-template-columns: 1fr;
    }
}

.inclusion-list li {
    background: white;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: 0.3s ease;
}

@media (max-width: 480px) {
    .inclusion-list li {
        padding: 16px 18px;
        font-size: 14px;
    }
}

.inclusion-list li:hover {
    transform: translateX(6px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.08);
}

.inclusion-list li i {
    color: white;
    background: var(--accent);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
}

/* The Journey Timeline - Responsive */
.journey-path {
    position: relative;
    padding-left: 45px;
}

@media (max-width: 480px) {
    .journey-path {
        padding-left: 38px;
    }
}

.journey-path::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 15px;
    bottom: 15px;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--accent), #e0e0e0);
    border-radius: 10px;
}

.journey-step {
    position: relative;
    margin-bottom: 45px;
}

@media (max-width: 480px) {
    .journey-step {
        margin-bottom: 35px;
    }
}

.journey-step::after {
    content: '';
    position: absolute;
    left: -37px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: white;
    border: 5px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.1);
    transition: 0.3s ease;
}

@media (max-width: 480px) {
    .journey-step::after {
        left: -33px;
        width: 14px;
        height: 14px;
    }
}

.journey-step:hover::after {
    transform: scale(1.25);
    box-shadow: 0 0 0 6px rgba(27, 94, 32, 0.15);
}

.journey-step h4 {
    font-weight: 800;
    font-size: clamp(16px, 3.5vw, 18px);
    margin-bottom: 8px;
    color: #0B3D2E;
}

.journey-step p {
    font-size: clamp(14px, 3vw, 15px);
    color: #5a7d6e;
    line-height: 1.7;
}

/* Sticky Action Footer - Fully Responsive */
.detail-footer-cta {
    position: fixed;
    bottom: 70px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    padding: 18px 24px calc(18px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(27, 94, 32, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    .detail-footer-cta {
        padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
        gap: 16px;
    }
}

.price-box {
    display: flex;
    flex-direction: column;
    min-width: 100px;
}

.old-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    font-weight: 600;
}

.new-price {
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 900;
    color: var(--primary);
    font-family: 'Outfit';
    line-height: 1;
}

.footer-actions-duo {
    display: flex;
    gap: 12px;
    flex: 1;
    max-width: 500px;
}

.claim-offer-btn {
    background: #E8F5E9;
    color: var(--primary);
    border: 2px solid #C8E6C9;
    padding: clamp(14px, 3vw, 16px) clamp(18px, 4vw, 25px);
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: clamp(13px, 3vw, 15px);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex: 1;
}

.claim-offer-btn:hover {
    background: #C8E6C9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.buy-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: clamp(14px, 3vw, 16px) clamp(24px, 5vw, 40px);
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: clamp(14px, 3vw, 16px);
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(27, 94, 32, 0.25);
    transition: var(--transition);
    white-space: nowrap;
    flex: 2;
}

.buy-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 35px rgba(27, 94, 32, 0.35);
}

.buy-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Responsive Design - Comprehensive Breakpoints */

/* Tablet & Up */
@media (min-width: 768px) {
    .detail-hero {
        max-width: 1000px;
        margin: 0 auto 40px;
        border-radius: var(--radius-xl);
    }

    .detail-footer-cta {
        max-width: 1000px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
}

/* Mobile Large */
@media (max-width: 600px) {
    .detail-footer-cta {
        flex-direction: column;
        gap: 14px;
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .footer-actions-duo {
        width: 100%;
    }

    .footer-actions-duo button {
        flex: 1;
        padding: 14px 16px;
        font-size: 14px;
    }

    .price-box {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100%;
    }
}

/* Mobile Small */
@media (max-width: 400px) {
    .detail-visual-hub {
        width: 240px;
        height: 240px;
    }

    .offer-label {
        padding: 6px 20px;
        font-size: 12px;
    }

    .thumb-item {
        width: 60px;
        height: 60px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .detail-hero {
        padding: 30px 20px 40px;
    }

    .detail-visual-hub {
        width: 180px;
        height: 180px;
        margin: 0 auto 20px;
    }

    .main-content {
        padding-bottom: 100px;
    }
}

/* Desktop Large */
@media (min-width: 1200px) {
    .detail-section {
        max-width: 1100px;
    }

    .info-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .info-card:hover,
    .inclusion-list li:hover,
    .journey-step:hover::after {
        transform: none;
    }

    .claim-offer-btn:active,
    .buy-btn:active {
        transform: scale(0.95);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Header Price Styles - Enhanced Responsive */
.header-price-box {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.header-old-price {
    font-size: clamp(16px, 3vw, 18px);
    color: #a5d6a7;
    text-decoration: line-through;
    font-weight: 600;
}

.header-new-price {
    font-size: clamp(32px, 6vw, 42px);
    font-weight: 900;
    background: linear-gradient(135deg, #1B5E20, #43A047);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(27, 94, 32, 0.15);
    line-height: 1;
}

.header-period {
    font-size: clamp(12px, 2.5vw, 14px);
    color: var(--text-gray);
    font-weight: 700;
    background: rgba(27, 94, 32, 0.06);
    padding: 5px 12px;
    border-radius: 14px;
    align-self: center;
    white-space: nowrap;
}
