:root {
  --primary-color: #0d0400;        /* dark brown/black */
  --secondary-color: #fef0e5;      /* soft beige */
  --accent-color: #ff8500;         /* orange highlight */
  --dark-color: #ff4400;           /* strong orange/red */
  --light-color: #fef0e5;          /* light bg (mapped) */
  --text-dark: #0d0400;            /* main text */
  --text-light: #8f8f8f;           /* muted text */
  --white: #ffffff;                /* white */

  --primary-color-gold: #ff8500;   /* accent reuse */
  --primary-color-brown: #0d0400;  /* dark tone */
  --primary-color-beige: #fef0e5;  /* light bg */

  --shadow-sm: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.11);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);

  --radius: 18px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;

  --font-display: "Fustat", sans-serif;
  --font-body: "Fustat", sans-serif;

  --bg-gradient: linear-gradient(
      to top,
      rgba(255, 133, 0, 0.75) 0%,   /* orange */
      rgba(13, 4, 0, 0.45) 55%,     /* dark overlay */
      transparent 100%
  );
}

html { scroll-behavior: smooth; }

body {
    background: #eef2f9;
    font-family: var(--font-body);
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.9;
}

.page-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* BREADCRUMB */
.bredcrumb {
    background: linear-gradient(135deg, var(--primary-color-gold), var(--secondary-color));
    padding: 52px 0 44px;
    position: relative;
    overflow: hidden;
}
.bredcrumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 50%, rgba(0,170,255,0.15) 0%, transparent 55%),
        radial-gradient(circle at 15% 80%, rgba(30,64,175,0.2) 0%, transparent 45%);
}
.bredcrumb .product-text {
    position: relative;
    z-index: 1;
    text-align: center;
}
.bredcrumb .product-text h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}
.bredcrumb .product-text p {
    font-family: var(--font-display);
    font-size: 0.88rem;
    margin: 0;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.bredcrumb .product-text p a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: var(--transition);
}
.bredcrumb .product-text p a:hover,
.bredcrumb .product-text p a.active { color: var(--white); }
.bredcrumb .product-text p span { opacity: 0.45; font-size: 0.75rem; }

/* LAYOUT GRID */
.layout-grid {
    display: grid;
    grid-template-columns: 260px 1fr 240px;
    gap: 26px;
    align-items: start;
}
@media (max-width: 1100px) {
    .layout-grid { grid-template-columns: 1fr; }
    .sidebar-left, .sidebar-right { display: none; }
}

/* SIDEBAR BASE */
.sidebar-left, .sidebar-right {
    position: sticky;
    top: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(37,99,235,0.09);
}
.widget-head {
    background: linear-gradient(135deg, var(--primary-color-gold), var(--primary-color-brown));
    padding: 13px 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--white);
}
.widget-body { padding: 16px 18px; }

/* TOC */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.toc-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-dark);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.4;
    transition: var(--transition);
}
.toc-list li a:hover { background: var(--primary-color-beige); color: var(--primary-color-gold); }
.toc-list li.toc-h2 a { padding-left: 22px; }
.toc-list li.toc-h3 a { padding-left: 36px; font-weight: 400; opacity: 0.85; }
.toc-list li a .toc-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.5;
    flex-shrink: 0;
    transition: var(--transition);
}
.toc-list li a:hover .toc-dot,
.toc-list li a.toc-active .toc-dot { opacity: 1; background: var(--primary-color-gold); }
.toc-list li a.toc-active {
    background: var(--primary-color-beige);
    color: var(--primary-color-gold);
    font-weight: 700;
}
.toc-progress-wrap {
    height: 3px;
    background: var(--primary-color-beige);
    border-radius: 99px;
    overflow: hidden;
    margin: 0 18px 14px;
}
.toc-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color-gold), var(--accent-color));
    border-radius: 99px;
    transition: width 0.2s ease;
}

/* RELATED PRODUCTS LIST */
.product-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.product-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}
.product-list li a:hover { background: var(--primary-color-beige); color: var(--primary-color-gold); }
.product-list li a.current {
    background: linear-gradient(135deg, var(--primary-color-beige), rgba(0,170,255,0.08));
    color: var(--primary-color-gold);
    font-weight: 700;
}
.product-list li a i { font-size: 1rem; flex-shrink: 0; color: var(--accent-color); transition: var(--transition); }
.product-list li a.current i { color: var(--primary-color-gold); }

/* CONTACT WIDGET */
.contact-widget-inner { text-align: center; padding: 8px 4px; }
.contact-widget-icon {
    width: 52px; height: 52px;
    background: var(--primary-color-beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 14px;
}
.contact-widget-inner h5 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color-gold);
    margin-bottom: 6px;
}
.contact-widget-inner p { font-size: 0.82rem; color: var(--text-light); line-height: 1.5; margin-bottom: 14px; }
.btn-contact-widget {
    display: block;
    background: linear-gradient(135deg, var(--primary-color-gold), var(--primary-color-brown));
    color: var(--white) !important;
    font-family: var(--font-display);
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 11px 16px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}
.btn-contact-widget:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37,99,235,0.38); }

/* MAIN CARD */
.main-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(37,99,235,0.07);
    overflow: hidden;
}

/* HERO */
.product-hero { position: relative; width: 100%; height: 400px; overflow: hidden; }
.product-hero img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.product-hero:hover img { transform: scale(1.04); }
.product-hero-overlay {
    position: absolute;
    inset: 0;
       background: var(--bg-gradient);

}
.product-hero-badge {
    position: absolute;
    top: 20px; left: 20px;
    background: var(--accent-color);
    backdrop-filter: blur(6px);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.product-hero-title-block { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 36px; }
.product-hero-title-block h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    font-weight: 800;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* CONTENT AREA */
.main-card-body { padding: 36px 40px 40px; }
@media(max-width:640px) {
    .main-card-body { padding: 22px 18px 28px; }
    .product-hero-title-block { padding: 18px 20px; }
}

.product-short-desc {
    font-family: var(--font-display);
    font-size: 0.97rem;
    color: var(--text-light);
    border-left: 3px solid var(--accent-color);
    padding: 10px 16px;
    background: rgba(0,170,255,0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* CONTENT TYPOGRAPHY */
.content { font-family: var(--font-body); color: var(--text-dark); font-size: 1.05rem; line-height: 1.9; }
.content p { margin-bottom: 16px; text-align: justify; }
.content h1, .content h2, .content h3 {
    font-family: var(--font-display);
    margin-top: 2.2rem;
    margin-bottom: 0.75rem;
    scroll-margin-top: 90px;
}
.content h1 {
    font-size: 1.65rem; font-weight: 800;
    color: var(--primary-color-gold);
    border-bottom: 2px solid var(--primary-color-beige);
    padding-bottom: 10px;
}
.content h2 {
    font-size: 1.3rem; font-weight: 700;
    color: var(--primary-color-gold);
    display: flex; align-items: center; gap: 8px;
}
.content h2::before {
    content: '';
    display: inline-block;
    width: 4px; height: 1em;
    background: linear-gradient(to bottom, var(--primary-color-gold), var(--accent-color));
    border-radius: 2px; flex-shrink: 0;
}
.content h3 { font-size: 1.1rem; font-weight: 600; color: var(--primary-color-brown); }
.content ul { padding-left: 0; list-style: none; }
.content ul li { padding: 4px 0 4px 24px; position: relative; }
.content ul li::before {
    content: '';
    position: absolute;
    left: 6px; top: 13px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent-color);
}
.content ol li::marker { color: var(--primary-color-gold); font-weight: 700; }
.content a { color: var(--primary-color-gold); text-underline-offset: 3px; }
.content a:hover { color: var(--accent-color); }
.content blockquote {
    border-left: 4px solid var(--primary-color-gold);
    background: var(--primary-color-beige);
    padding: 14px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--primary-color-brown);
    margin: 20px 0;
}
.content table {
    width: 100%; border-collapse: collapse;
    font-family: var(--font-display); font-size: 0.9rem;
    margin: 20px 0; border-radius: var(--radius-sm);
    overflow: hidden; box-shadow: var(--shadow-sm);
}
.content table thead {
    background: linear-gradient(135deg, var(--primary-color-gold), var(--primary-color-brown));
    color: var(--white);
}
.content table thead th { padding: 12px 16px; font-weight: 600; }
.content table tbody tr:nth-child(even) { background: var(--primary-color-beige); }
.content table tbody td { padding: 10px 16px; border-bottom: 1px solid rgba(37,99,235,0.07); }

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color-beige), transparent);
    margin: 36px 0;
}

/* GALLERY */
.gallery-section { margin-top: 40px; }
.gallery-section-title {
    font-family: var(--font-display);
    font-size: 1.05rem; font-weight: 700;
    color: var(--primary-color-gold);
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 16px;
}
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media(max-width:540px) { .gallery-grid { grid-template-columns: repeat(2,1fr); } }
.gallery-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; }
.gallery-item::after {
    content: '\F52A';
    font-family: 'Bootstrap Icons';
    position: absolute; inset: 0;
    background: rgba(37,99,235,0.55);
    color: var(--white); font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after { opacity: 1; }

/* FAQ */
.faq-section { margin-top: 44px; }
.faq-section-title {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 700;
    color: var(--primary-color-gold);
    display: flex; align-items: center; gap: 9px;
    margin-bottom: 18px; padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color-beige);
}
.accordion-item { border: 1px solid var(--primary-color-beige) !important; border-radius: 10px !important; overflow: hidden; margin-bottom: 10px; }
.accordion-button {
    font-family: var(--font-display);
    font-size: 0.92rem; font-weight: 600;
    color: var(--text-dark) !important;
    background: var(--white) !important;
    padding: 15px 20px; box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color-gold), var(--primary-color-brown)) !important;
    color: var(--white) !important;
}
.accordion-button::after { filter: none; opacity: 0.6; }
.accordion-button:not(.collapsed)::after { filter: brightness(10); opacity: 1; }
.accordion-body { background: rgba(224,231,255,0.25); font-size: 0.95rem; color: var(--text-dark); line-height: 1.75; padding: 16px 20px; }

/* META TAGS */
.meta-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.meta-tag {
    background: var(--primary-color-beige);
    color: var(--primary-color-brown);
    font-family: var(--font-display);
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.3px;
    padding: 4px 12px; border-radius: 20px;
    display: flex; align-items: center; gap: 5px;
}

/* LIGHTBOX */
.lightbox-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(10,15,40,0.92);
    z-index: 9999;
    align-items: center; justify-content: center;
    padding: 20px; backdrop-filter: blur(8px);
}
.lightbox-overlay.open { display: flex; }
.lightbox-img {
    max-width: 90vw; max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: lbIn 0.3s ease;
}
@keyframes lbIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
.lightbox-close {
    position: absolute; top: 20px; right: 24px;
    color: #fff; font-size: 2rem; cursor: pointer;
    opacity: 0.7; transition: var(--transition);
    background: none; border: none; line-height: 1;
}
.lightbox-close:hover { opacity: 1; transform: rotate(90deg); }

/* READING INFO */
.reading-info {
    display: flex; align-items: center; gap: 16px;
    font-family: var(--font-display);
    font-size: 0.8rem; color: var(--text-light);
    margin-bottom: 20px;
}
.reading-info i { color: var(--accent-color); }
