/* Page Header / Small Hero */
.hero-sm {
    padding: 180px 0 100px;
    background: #000;
    position: relative;
    /* Uses same overlay logic as main hero but static height */
    margin-bottom: 60px;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    overflow: hidden;
}

.hero-sm .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-sm .hero-bg img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-sm .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-sm h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.2;
}

/* Breadcumb Custom */
.breadcrumb-custom {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    font-weight: 500;
}

.breadcrumb-custom a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb-custom a:hover {
    color: var(--accent-copper);
}

.breadcrumb-custom span {
    color: var(--accent-copper);
}

/* Sidebar Widget */
.widget-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.cat-list li {
    margin-bottom: 12px;
}

.cat-list a {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    transition: 0.3s;
}

.cat-list a:hover {
    color: var(--accent-copper);
    padding-left: 5px;
}

/* Service Detail Content */
.detail-img {
    border-radius: 8px;
    /* Slightly softer */
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--border);
    width: 100%;
    aspect-ratio: 16/9;
    /* Enforce similar ratio to 1200x700 */
    max-height: 500px;
    /* Cap the height */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
}

.detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.detail-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.detail-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.spec-table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.spec-table th {
    color: var(--text-main);
    width: 30%;
    font-weight: 600;
}

/* Contact Page Specifics */
.contact-card-lg {
    background: var(--bg-surface);
    padding: 50px;
    text-align: center;
    border: 2px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    height: 100%;
    border-radius: 8px;
}

.contact-card-lg:hover {
    border-color: var(--accent-copper);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(217, 119, 70, 0.15);
}

.contact-icon-lg {
    width: 80px;
    height: 80px;
    background: rgba(217, 119, 70, 0.15);
    color: var(--accent-copper);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 30px;
    border: 2px solid rgba(217, 119, 70, 0.2);
}

/* Light theme overrides for contact cards */
[data-theme="light"] .contact-card-lg {
    background: #ffffff;
    border: 2px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .contact-card-lg h3,
[data-theme="light"] .contact-card-lg p {
    color: var(--text-main) !important;
    opacity: 1 !important;
}

[data-theme="light"] .contact-card-lg .text-white {
    color: var(--text-main) !important;
}

[data-theme="light"] .contact-card-lg .opacity-75 {
    opacity: 0.7 !important;
    color: var(--text-muted) !important;
}

/* Product Content & Gallery Enhancements */
.product-description h2,
.detail-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 40px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-copper);
    display: block;
    width: 100%;
}

.product-description .gallery,
.detail-content .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.product-description .gallery-item,
.detail-content .gallery-item {
    margin: 0;
    text-align: center;
    background: var(--bg-surface);
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: 0.3s;
}

.product-description .gallery-item:hover {
    border-color: var(--accent-copper);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-description .gallery-icon img,
.detail-content .gallery-icon img {
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain;
}

.product-description .gallery-caption,
.detail-content .gallery-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
}

/* Fix MÜŞTERİ HİZMETLERİ section if it's broken text */
.product-description .customer-service-hide {
    display: none;
}

/* If the user has manual DL/DT/DD galleries without .gallery class */
.product-description dl.gallery-item,
.detail-content dl.gallery-item {
    display: inline-block;
    width: calc(33.333% - 14px);
    margin: 5px;
    vertical-align: top;
    background: var(--bg-surface);
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: 0.3s;
}

.product-description dl.gallery-item:hover,
.detail-content dl.gallery-item:hover {
    border-color: var(--accent-copper);
    transform: translateY(-3px);
}

.product-description dl.gallery-item dt,
.detail-content dl.gallery-item dt {
    margin-bottom: 10px;
}

.product-description dl.gallery-item img,
.detail-content dl.gallery-item img {
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain;
}

@media (max-width: 768px) {

    .product-description dl.gallery-item,
    .detail-content dl.gallery-item {
        width: calc(50% - 14px);
    }
}

@media (max-width: 480px) {

    .product-description dl.gallery-item,
    .detail-content dl.gallery-item {
        width: 100%;
        margin: 10px 0;
    }
}