/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Admin page product card media alignment (match public products) */
body[data-page="admin"] .product-media {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body[data-page="admin"] .product-media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
/* Lightbox nav buttons */
.pd-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 90px;
    height: 90px;
    border: none;
    border-radius: 50%;
    background: transparent; /* fully transparent circle */
    color: #fff; /* brighter arrow for visibility */
    font-size: 44px;
    line-height: 0; /* ensure glyph is optically centered */
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    z-index: 10002; /* above image */
    box-shadow: none;
}

/* Closer to the image on desktop */
.pd-lightbox-prev { left: 2vw; }
.pd-lightbox-next { right: 2vw; }

/* On small screens keep near the edges for easier reach */
@media (max-width: 768px) {
  .pd-lightbox-prev { left: 12px; }
  .pd-lightbox-next { right: 12px; }
  .pd-lightbox-nav {
    width: 60px;
    height: 60px;
    font-size: 36px;
    font-weight: 700;
  }
}

/* Breadcrumb spacing */
.breadcrumb {
    padding-left: 12px;
}

html {
    scroll-behavior: smooth;
}

/* Size variables for hero banner slider */
:root {
    --hero-thumb-w: 120px;
    --hero-thumb-h: 90px;
    --hero-thumb-gap: 1rem;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.4;
    color: #333;
    overflow-x: hidden;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 73, 94, 0.3);
}

/* Monument cards hover effects */
.monument-card {
    text-decoration: none;
    color: inherit;
}

.monument-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

/* View products button */
.view-products-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #2c3e50;
    color: white;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.monument-card:hover .view-products-btn {
    background: #34495e;
}

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card[style*="cursor: pointer"]:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    /* Center the image inside the card */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    /* Show entire image without cropping while fitting into the box */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    display: block;
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.no-image-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.image-count {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.product-description-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.product-description {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    flex: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-price {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.3;
    display: block;
}

.product-category {
    background: #f7f2ea;
    color: #5a3a28;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid #e5d8c7;
}


/* Breadcrumb navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #2c3e50;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Product Details Page */
.product-details-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .product-details-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.product-images-section {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.main-image-container {
    position: relative;
    margin-bottom: 1rem;
}

.thumbnail-gallery {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.thumbnail.active {
    border-color: #2c3e50;
}

.thumbnail:hover {
    border-color: #34495e;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-section {
    padding-left: 1rem;
}

.product-header {
    margin-bottom: 1.5rem;
}

.product-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    color: #2c3e50;
    line-height: 1.2;
}

.product-category-badge {
    background: #f7f2ea;
    color: #5a3a28;
    padding: 0.25rem 0.6rem;
    border-radius: 14px;
    font-size: 0.78rem;
    border: 1px solid #e5d8c7;
    font-weight: 600;
}

.product-category-badge.category-1 {
    background: #e8f5e8;
    color: #2d5a2d;
    border-color: #c3e6c3;
}

.product-category-badge.category-2 {
    background: #e8f0ff;
    color: #1a365d;
    border-color: #bee3f8;
}

.product-category-badge.category-3 {
    background: #fff5e6;
    color: #744210;
    border-color: #fbd38d;
}

.product-price-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2c3e50;
}

.product-price-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}

.product-description-section {
    margin-bottom: 2rem;
}

.product-description-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    color: #2c3e50;
}

.product-description-content {
    color: #555;
    line-height: 1.6;
}

.product-description-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.product-description-content li {
    margin-bottom: 0.5rem;
}

.contact-section {
    background: #2c3e50;
    color: white;
    padding: 2rem;
    border-radius: 8px;
}

.contact-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.contact-phones {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.phone-number i {
    color: #27ae60;
}

.phone-number a {
    color: white;
    text-decoration: none;
}

.phone-number a:hover {
    color: #27ae60;
}

/* Catalog menu links */
.catalog-menu a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.catalog-menu a:hover {
    text-decoration: none;
    color: #2c3e50;
}

.sidebar-menu a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.sidebar-menu a:hover {
    text-decoration: none;
    color: #2c3e50;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 3px solid #5a3a28;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* bottom-align elements to line up nav with subtitle */
    padding: 0.5rem 0;
    min-height: 72px;
}

/* Ensure the logo block stacks tightly so subtitle defines the baseline */
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo h1 {
    line-height: 1;
    margin-bottom: 2px; /* small gap above subtitle */
}
.logo span {
    line-height: 1.2;
}

/* When logo is an anchor, remove underline and inherit colors in all states */
a.logo,
a.logo:link,
a.logo:visited,
a.logo:hover,
a.logo:active {
    text-decoration: none;
    color: inherit !important;
}

/* Remove focus ring and mobile tap highlight specifically for the logo */
a.logo:focus, a.logo:focus-visible {
    outline: none;
}
a.logo {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

/* Ensure no default link styles appear in the header (covers nav + logo) */
.header a,
.header a:link,
.header a:visited,
.header a:hover,
.header a:active {
    color: inherit !important;
    text-decoration: none !important;
}

/* Apply the same to all children inside header links (e.g., h1, span) */
.header a *,
.header a *:link,
.header a *:visited,
.header a *:hover,
.header a *:active {
    color: inherit !important;
    text-decoration: none !important;
}

/* Prevent any underline/border on logo text elements */
.logo h1,
.logo span {
    text-decoration: none !important;
    border-bottom: 0 !important;
}

/* Nudge nav slightly down to align with subtitle baseline */
.nav {
    padding-bottom: 4px;
}

/* Make header container span full width and align with page gutters */
.header .container {
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

.logo h1 {
    color: #5a3a28;
    font-size: 2.4rem;
    margin-bottom: 0;
    font-weight: bold;
}

.logo span {
    color: #666;
    font-size: 1.33rem;
    font-weight: normal;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: normal;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #5a3a28;
}

.burger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 25px;
    justify-content: space-between;
}

.burger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background: #2c3e50;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Page Layout */
.page-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: stretch;
    margin-top: 63px;
    min-height: calc(100vh - 63px);
    background: #f5f5f5;
}

/* Sidebar */
.sidebar {
    width: 320px;
    background: #f0e6d2;
    padding: 20px 24px 0 24px;
    flex-shrink: 0;
    border-right: 1px solid #d4c5a9;
}

.sidebar-section {
    margin-bottom: 15px;
    background: white;
    border: 1px solid #d4c5a9;
    border-radius: 5px;
    overflow: hidden;
}

.sidebar-section:first-child {
    margin-top: 0;
}

.sidebar-section h3 {
    background: #8B4513;
    margin: 0;
    padding: 15px;
    font-size: 1.1rem;
    color: white;
    border: none;
    font-weight: bold;
    cursor: default;
}

.sidebar-section h3:hover {
    background: #8B4513;
}

/* Gallery Section */
.gallery-section {
    background: white;
}

.gallery-title {
    background: #8B4513 !important;
    color: white !important;
    font-weight: bold;
    font-size: 1.1rem !important;
}

.sidebar-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 15px;
    background: white;
}

.gallery-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 3px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid #ddd;
}

.gallery-thumb:hover {
    transform: scale(1.05);
}

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

/* Catalog Section */
.catalog-section {
    background: white;
}

.catalog-title {
    background: #8B4513 !important;
    color: white !important;
    font-weight: bold;
    font-size: 1.1rem !important;
}

.catalog-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: white;
}

.catalog-menu li {
    border-bottom: 1px solid #e0e0e0;
}

.catalog-menu li:last-child {
    border-bottom: none;
}

.catalog-menu a {
    display: block;
    padding: 15px;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.3s ease;
    background: white;
}

.catalog-menu a:hover {
    background: #f5f5f5;
}

/* Menu Section */
.menu-section {
    background: white;
}

.menu-title {
    background: #8B4513 !important;
    color: white !important;
    font-weight: bold;
    font-size: 1.1rem !important;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: white;
}

.sidebar-menu li {
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu a {
    display: block;
    padding: 15px;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.3s ease;
    background: white;
}

.sidebar-menu a:hover {
    background: #f5f5f5;
}

/* Main Content Area */
.main-content-area {
    flex: 1;
    background: white;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    background: white;
}

.slider-container {
    position: relative;
}

/* Hero slider navigation buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 28px;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10; /* ensure above images */
    transition: background 0.2s ease, transform 0.2s ease;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.5);
}

.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }

.banner-images {
    position: relative;
    width: 100%;
    height: 400px; /* consistent height on desktop */
    overflow: hidden;
    background: #ffffff; /* neutral background behind letterbox */
    z-index: 1;
}

.banner-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* show entire image without cropping */
    background: #ffffff; /* ensure white bars on sides if aspect ratio differs */
    z-index: 1;
    border: 3px solid white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

.banner-thumb.active {
    opacity: 1;
    pointer-events: auto;
}

.banner-text {
    flex: 1;
    color: white;
}

.banner-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.banner-text p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Company Section */
.company-section {
    padding: 2rem;
    background: white;
}

.company-content h1 {
    color: #5a3a28;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    line-height: 1.3;
}

.company-content p {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    text-align: justify;
}

.features-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.features-list li {
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.5;
}

.features-list li::before {
    content: '•';
    color: #c58a5a;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Monument Types Section */
.monument-types-section {
    padding: 2rem;
    background: #f9f9f9;
}

.monument-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: stretch;
}

.monument-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transform: translateY(0);
    height: 100%;
    min-height: 650px; /* Increased minimum height */
    position: relative;
}

.monument-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.monument-card:hover .view-products-btn {
    background: #3d281a;
    transform: translateY(-2px);
}

.monument-card h3 {
    background: #5a3a28;
    color: white;
    margin: 0;
    padding: 1.2rem 1rem;
    font-size: 1.2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.monument-image {
    height: 350px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.monument-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.monument-card:hover .monument-image img {
    transform: scale(1.05);
}

.monument-card p {
    padding: 1.5rem 1.5rem 2rem;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    margin: 0;
    flex-grow: 1;
}

.monument-card .view-products-btn {
    display: block;
    text-align: center;
    margin: auto 1.5rem 1.5rem;
    padding: 0.8rem 1.5rem;
    background: #5a3a28;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    background: #5a3a28;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    align-self: flex-start;
    width: calc(100% - 2rem);
    box-sizing: border-box;
}

/* About Section */
.about {
    padding: 6rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature i {
    color: #27ae60;
    font-size: 1.2rem;
}

.feature span {
    color: #2c3e50;
    font-weight: 500;
}

/* Gallery Section */
.gallery {
    padding: 2rem 0;
    background: #f5f5f5;
}

.gallery h2 {
    color: #c58a5a;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: bold;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem; /* match spacing to the section above */
}

.gallery-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f9f9f9;
    padding: 10px;
}

.gallery-info {
    padding: 0.75rem;
    text-align: center;
}

.gallery-info h4 {
    color: #333;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.details-btn {
    display: inline-block;
    background: #5a3a28;
    color: white;
    padding: 0.3rem 0.8rem;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.75rem;
    transition: background 0.3s ease;
}

.details-btn:hover {
    background: #70482f;
}

/* Prices Page */
.prices-section {
    padding: 2rem;
    background: #ffffff;
}

.prices-header {
    text-align: center;
    margin-bottom: 2rem;
}
.prices-header h2 {
    color: #c58a5a;
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.prices-header p {
    color: #666;
    font-size: 0.95rem;
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.price-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.price-card h3 {
    background: #5a3a28;
    color: #fff;
    margin: -1.25rem -1.25rem 1rem;
    padding: 0.8rem 1.25rem;
    font-size: 1rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.price-card ul {
    list-style: none;
    padding-left: 1rem;
    margin-bottom: 1rem;
}
.price-card ul li {
    position: relative;
    padding-left: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #333;
}
.price-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #c58a5a;
}

.price-table-wrap {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.price-table-wrap h3 {
    margin: 0;
    padding: 1rem 1.25rem;
    background: #f7f2ea;
    color: #5a3a28;
    font-size: 1rem;
    border-bottom: 1px solid #e5d8c7;
}
.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.price-table thead th {
    background: #faf6ef;
    color: #5a3a28;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5d8c7;
}
.price-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0e6d2;
    color: #333;
}
.price-table tbody tr:nth-child(odd) td {
    background: #fff;
}
.price-table tbody tr:nth-child(even) td {
    background: #fcfbf8;
}

.prices-notes {
    margin-top: 1rem;
}
.prices-notes ul {
    list-style: none;
    padding-left: 1rem;
}
.prices-notes li {
    position: relative;
    padding-left: 0.75rem;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: #555;
}
.prices-notes li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: #c58a5a;
}

.prices-cta {
    text-align: center;
    margin-top: 1.25rem;
}


/* Contact Section */
.contact {
    padding: 6rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-form-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem; /* bottom padding for the section */
}

.contact-form-section .contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 3rem;
    align-items: start;
}

.contact-form-section .map-container {
    max-width: none;
    width: 100%;
    border-radius: 0; /* rectangular map container */
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    justify-self: stretch;
    align-self: start;
    margin-bottom: 1.5rem; /* spacing under the map */
}

.contact-form-section .map-container iframe {
    display: block;
    width: 100%;
    height: 240px; /* reduced to align with text height */
    border-radius: 0; /* ensure rectangular */
}

/* Contact typography adjustments */
.contact-form-section .section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.contact-form-section .section-header h2 {
    font-size: 1.4rem; /* match gallery h2 */
    color: #c58a5a; /* match gallery h2 color */
    font-weight: bold;
}
.contact-form-section .section-header p {
    font-size: 0.9rem;
}
.contact-form-section .contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.contact-form-section .contact-item p {
    font-size: 0.9rem;
}
.contact-form-section .contact-info {
    text-align: left;
    max-width: 560px;
    padding-right: 8px;
}
.contact-form-section .contact-item i {
    font-size: 1.2rem; /* slightly smaller icon */
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ecf0f1;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    color: #3498db;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #7f8c8d;
    margin-bottom: 0.25rem;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Contact anchor section (no visual bar) */
.contact {
    padding: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    height: 0;
}

.contact h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-phones {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.contact-phones span {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Footer */
.footer {
    background: #ffffff; /* white footer option */
    color: #333;
    padding: 0.5rem 0; /* compact height around single line */
    font-size: 0.85rem;
    border-top: 3px solid #5a3a28; /* match header border thickness and color */
}

.footer-content {
    display: grid;
    grid-template-columns: 320px 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

/* Simple footer layout: single title line */
.footer-content.simple {
    display: block;
    text-align: center;
    margin-bottom: 0.25rem;
}

.footer-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #5a3a28;
    line-height: 1.2;
}

/* Place each footer section into its own column */
.footer-content .footer-section:nth-child(1) { grid-column: 1; }
.footer-content .footer-section:nth-child(2) { grid-column: 2; }
.footer-content .footer-section:nth-child(3) { grid-column: 3; }

.footer-logo h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.footer-logo p {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #333;
}

.footer-contact p {
    color: #555;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.footer-contact i {
    color: #5a3a28;
    width: 16px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #5a3a28;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #70482f;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: none;
    padding-top: 0; /* no extra height above line */
    text-align: center;
}

.footer-bottom {
    border-top: none; /* prevent duplicate border */
    padding-top: 0;
    text-align: center;
}

.footer-bottom p {
    color: #777;
    margin: 0;
    font-size: 0.7rem; /* very small */
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 70%;
    max-height: 90%;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    border: 2px solid white;
    z-index: 2001;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transform: scale(1.1);
}

.lightbox img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

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

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background: white;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid #ecf0f1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .slide-content h2 {
        font-size: 2.5rem;
    }
    
    .slider-btn {
        font-size: 1.5rem;
        padding: 0.75rem;
    }
    
    .slider-btn.prev {
        left: 1rem;
    }
    
    .slider-btn.next {
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .page-layout {
        display: block; /* single column layout */
        grid-template-columns: 1fr; /* fallback if grid remains */
    }
    /* Hide left sidebar on mobile */
    .sidebar {
        display: none !important;
    }
    /* Make main content full width */
    .main-content-area {
        order: 1;
        width: 100%;
    }
    
    .contact-form-section .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .contact-form-section .map-container {
        max-width: 100%;
        justify-self: center;
    }
    
    .monument-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2rem;
        max-width: 500px;
        padding: 0 15px;
    }
    
    .monument-card {
        min-height: 600px;
    }
    
    .monument-image {
        height: 300px;
    }
    
    .company-section {
        padding: 1rem;
    }
    
    .monument-types-section {
        padding: 1rem;
    }
    
    .banner-text h1 {
        font-size: 1.8rem;
    }
    
    .banner-text p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .services,
    .about,
    .gallery,
    .contact {
        padding: 4rem 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-content > *:first-child {
        grid-column: 1;
        grid-row: 1 / 3;
    }
    
    .footer-content > *:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    .footer-content > *:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.5rem 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .company-content h1 {
        font-size: 1.4rem;
    }
    
    .sidebar-section h3 {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        display: flex !important;
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
        width: 100%;
    }
    
    .gallery-item {
        width: 100% !important;
        height: auto !important;
        margin: 0 0 20px 0;
        padding: 0;
        aspect-ratio: auto !important;
        max-width: 100%;
    }
    
    .gallery-item img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        object-fit: contain !important;
        object-position: center;
        margin: 0 auto;
        display: block;
    }
    
    .gallery-item .image-container {
        height: auto !important;
        padding-bottom: 0 !important;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .slider-dots {
        bottom: 1rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Product Details Page Styles */
.product-info-section h1 {
    font-size: 1.4rem !important;
    margin-bottom: 0.75rem;
}

.product-description-section h3 {
    font-size: 1.2rem !important;
    margin-bottom: 1rem;
    color: #333;
}

/* Preserve user-entered formatting in product description */
.product-description-content {
    white-space: pre-wrap; /* keep newlines and sequences of spaces */
    word-wrap: break-word;
}

.product-price-simple {
    font-size: 1.1rem !important;
    font-weight: 600;
    color: #333;
    margin-top: auto;
    padding: 0;
    background: none;
    border: none;
}

/* Product details imagery adjustments */
/* Remove rounded corners and add left padding for main image */
.main-image-container {
    padding-left: 12px;
}

#main-image {
    border-radius: 0 !important;
    object-fit: contain !important; /* show entire image without cropping */
    background: #fff; /* neutral background for letterboxing */
    cursor: zoom-in;
}

/* Thumbnails row: left padding and no rounded corners */
#thumbnail-gallery {
    padding-left: 12px;
}

#thumbnail-gallery img {
    border-radius: 0 !important;
}

/* Make the right column stretch and allow price to stick to the bottom */
.product-info-section {
    display: flex;
    flex-direction: column;
}

/* Product details lightbox */
.pd-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
}

.pd-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    background: #fff;
    z-index: 10001;
}

.pd-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure the images section has a consistent height matching the main image */
.product-images-section {
    display: block;
}

@media (max-width: 768px) {
    .product-info-section h1 {
        font-size: 1.2rem !important;
    }
    
    .product-description-section h3 {
        font-size: 1.1rem !important;
    }
    
    .product-price-simple {
        font-size: 1rem !important;
        /* On mobile allow natural flow, not forced bottom alignment */
        margin-top: 1rem;
    }
}
