/* ====================================================
   Haji Manager — Single Package Page Template CSS
   Font: Inherits active theme font body
   ==================================================== */

.haji-single-wrapper {
    font-family: inherit;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
    color: #2d3748;
    overflow: visible !important;
}

.haji-single-wrapper * {
    box-sizing: border-box;
}

/* Breadcrumbs */
.haji-single-breadcrumbs {
    font-size: 13px;
    color: #718096;
    margin-bottom: 12px;
}

.haji-single-breadcrumbs a {
    color: #718096;
    text-decoration: none;
}

.haji-single-breadcrumbs a:hover {
    color: #0b4f42;
}

/* Page Title H1 */
.haji-single-title {
    font-size: 30px;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 16px 0;
    line-height: 1.25;
}

/* Quick Meta Badges */
.haji-single-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    background: #f7fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 25px;
    font-size: 13px;
    color: #4a5568;
}

.haji-quick-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.haji-quick-icon {
    display: inline-flex;
    align-items: center;
    color: #0b4f42;
}

.haji-quick-icon svg {
    width: 16px;
    height: 16px;
    stroke: #0b4f42;
}

.haji-quick-value {
    font-weight: 600;
    color: #2d3748;
}

/* Gallery Section */
.haji-single-gallery {
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    background: #edf2f7;
}

.haji-main-featured-image {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.haji-gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.haji-gallery-thumb-item {
    width: 90px;
    height: 65px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.haji-gallery-thumb-item:hover {
    border-color: #0b4f42;
}

.haji-gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== GRID LAYOUT ===== */
.haji-single-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 35px;
    align-items: stretch !important;
    overflow: visible !important;
}

/* Left Main Content Column */
.haji-single-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.haji-content-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.haji-section-title {
    font-size: 19px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #0b4f42;
    display: inline-block;
}

.haji-section-body {
    font-size: 15px;
    line-height: 1.7;
    color: #4a5568;
    white-space: pre-line;
}

.haji-section-body p {
    margin-top: 0;
    margin-bottom: 12px;
}

.haji-section-body ul, 
.haji-section-body ol {
    margin: 0 0 12px 20px;
    padding: 0;
}

.haji-section-body li {
    margin-bottom: 6px;
}

/* ===== STICKY SIDEBAR ===== */
.haji-single-sidebar {
    position: relative;
    height: 100%;
    align-self: stretch;
}

.haji-sticky-box {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 60px !important;
    z-index: 90;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.haji-sidebar-heading {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2f7;
}

.haji-sidebar-price-box {
    margin-bottom: 18px;
}

.haji-price-name {
    font-size: 14px;
    font-weight: 600;
    color: #718096;
    margin-bottom: 4px;
}

.haji-price-display {
    font-size: 24px;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.2;
}

.haji-price-display del {
    color: #a0aec0;
    font-size: 16px;
    font-weight: 400;
    margin-right: 8px;
    text-decoration: line-through;
}

.haji-price-display ins {
    color: #0b4f42;
    text-decoration: none;
}

/* INLINE ROW: Quantity Input & Order Button */
.haji-cart-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    width: 100%;
}

.haji-cart-action-row .quantity {
    display: inline-flex !important;
    float: none !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.haji-cart-action-row .quantity input.qty {
    width: 70px !important;
    height: 48px !important;
    padding: 4px 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #1a202c !important;
    border: 1px solid #cbd5e0 !important;
    border-radius: 10px !important;
    background-color: #ffffff !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box !important;
}

.haji-cart-action-row .quantity input.qty:focus {
    border-color: #0b4f42 !important;
    box-shadow: 0 0 0 3px rgba(11, 79, 66, 0.15) !important;
}

.haji-single-order-btn {
    flex: 1;
    height: 48px !important;
    margin-top: 0 !important;
    background-color: #0b4f42 !important;
    color: #ffffff !important;
    padding: 0 20px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.15s ease !important;
    box-shadow: 0 3px 10px rgba(11, 79, 66, 0.25) !important;
    line-height: 1 !important;
}

.haji-single-order-btn:hover {
    background-color: #06372e !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Customer Service Note Box (Centered) */
.haji-cs-note-box {
    background-color: #f7fafc;
    border: 1px dashed #cbd5e0;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
    font-size: 12px;
    color: #4a5568;
    line-height: 1.5;
    margin-top: 20px;
}

.haji-cs-note-box strong {
    color: #2d3748;
}

/* ===== RESPONSIVE (MOBILE - DISABLE STICKY & STACK 1 COLUMN) ===== */
@media (max-width: 768px) {
    .haji-single-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }

    .haji-sticky-box {
        position: static !important;
        top: auto !important;
    }

    .haji-single-title {
        font-size: 22px;
    }

    .haji-main-featured-image {
        max-height: 300px;
    }
}


