/* General Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0px 0;
}

#menu-1 {
    text-align: center;
    font-size: 1rem;
    color: #666;
    padding: 0px;
}

/* Breadcrumb Area */
.tm-breadcrumb-area {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    margin-top: 30px;
}

.tm-breadcrumb-area::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.tm-breadcrumb {
    position: relative;
    z-index: 2;
}

.tm-breadcrumb h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 20px auto;
    max-width: 90%;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 0 15px;
    line-height: 1.3;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

/* Product Details Area */
.tm-section.product-details-area {
    padding: 40px 0;
    background: #fff;
}

.tm-prodetails-images {
    margin-bottom: 30px;
}

.tm-prodetails-largeimages {
    width: 100%;
}

.tm-prodetails-largeimage {
    width: 100%;
    height: 500px; /* Increased image height */
}

.tm-prodetails-largeimage img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image fills container without distortion */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tm-prodetails-largeimage img:hover {
    transform: scale(1.05);
}

/* Tabs */
.tm-tabgroup2 {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
}

.tm-tabgroup2 .nav-item {
    margin-right: 10px;
}

.tm-tabgroup2 .nav-link {
    padding: 10px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    background: #f5f5f5;
    border-radius: 5px 5px 0 0;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.tm-tabgroup2 .nav-link.active,
.tm-tabgroup2 .nav-link:hover {
    background: #007bff;
    color: #fff;
}

/* Description and Form */
.tm-prodetails-description h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #222;
}

.tm-prodetails-description p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Form */
.tm-form {
    max-width: 600px;
}

.tm-form-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tm-form-field {
    flex: 1 1 100%;
}

.tm-form-fieldhalf {
    flex: 1 1 48%;
}

.tm-form-field input,
.tm-form-field textarea,
.tm-form-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.tm-form-field input:focus,
.tm-form-field textarea:focus,
.tm-form-field select:focus {
    border-color: #007bff;
    outline: none;
}

.tm-form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.tm-button {
    display: inline-block;
    padding: 12px 30px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tm-button:hover {
    background: #0056b3;
}

/* Sidebar Widgets */
.sidebar-widgets3 {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.widget-popularproduct .widget-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #222;
}

.widget-popularproduct ul {
    list-style: none;
}

.widget-popularproduct li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.widget-recentpost-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.widget-recentpost-content h6 {
    font-size: 1rem;
    margin: 0;
}

.widget-recentpost-content a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget-recentpost-content a:hover {
    color: #007bff;
}

/* Responsive Design */
@media (max-width: 991px) {
    .tm-breadcrumb h1 {
        font-size: 2rem;
    }

    .tm-prodetails,
    .tm-prodetails-desreview {
        margin-bottom: 30px;
    }

    .tm-form-fieldhalf {
        flex: 1 1 100%;
    }

    .sidebar-widgets3 {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .tm-breadcrumb-area {
        padding: 100px 0 60px; /* Increased top padding to avoid header overlap */
    }

    .tm-breadcrumb h1 {
        font-size: 1.4rem;
        margin: 15px auto;
        max-width: 95%;
        padding: 0 10px;
        line-height: 1.4;
        word-wrap: break-word;
    }

    .tm-prodetails-largeimage {
        height: 300px; /* Reduced height for mobile */
    }

    .tm-prodetails-description h2 {
        font-size: 1.5rem;
    }

    .tm-tabgroup2 .nav-link {
        font-size: 1rem;
        padding: 8px 15px;
    }

    .widget-recentpost-image img {
        width: 60px;
        height: 60px;
    }

    #menu-1 {
        font-size: 0.9rem;
        padding: 1px;
    }
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.875rem; /* text-sm */
  text-align: center;
}

.contact-details a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: #16a34a; /* Tailwind's green-600 */
}

@media (min-width: 640px) {
  .contact-details {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    text-align: left;
  }
}
