* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body {
    font-family: Helvetica, sans-serif;
    background: #f9f9f9;
    margin: 0;
    padding: 0;
    font-size: 12px;
    text-align: center;
    width: 100%;
    max-width: 100vw;
    min-width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 100px;
}

header {
    background: linear-gradient(135deg, #1a3c61, #2a4c71);
    color: white;
    padding: 10px 0;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    margin-bottom: 3px;
    font-size: 18px;
}

header p {
    font-size: 12px;
    opacity: 0.9;
}

footer {
    background: linear-gradient(135deg, #1a3c61, #2a4c71);
    color: white;
    padding: 15px 0;
    margin-top: 15px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: pan-y;
    border-radius: 8px;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
}

.progress-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

.contact-info {
    margin-bottom: 15px;
}

.contact-info p {
    margin: 5px 0;
    font-size: 14px;
}

.copyright {
    font-size: 12px;
    opacity: 0.8;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 10px;
}

.catalog {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Fixed two-column layout */
    gap: 10px;
    padding: 10px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.item {
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.priority-high {
    grid-column: span 1;
    border-left: 4px solid #e74c3c;
    padding-left: 25px;
}

.priority-medium {
    grid-column: span 1;
    border-left: 3px solid #3498db;
    padding-left: 18px;
	min-height: 150px;
}

.priority-low {
    grid-column: span 1;
    border-left: 2px solid #95a5a6;
    padding-left: 15px;
	min-height: 150px;
}


.item-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #f5f5f5;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s;
}

.item-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 auto;
}

.item h2 {
    margin: 8px 0 12px 0;
    font-size: 14px;
    text-align: left;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.priority-high h2 {
    font-size: 20px;
    color: #e74c3c;
}

.priority-medium h2 {
    font-size: 18px;
    color: #3498db;
}

.priority-low h2 {
    font-size: 15px;
    color: #555;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.whatsapp-button, .call-button {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    height: 42px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.whatsapp-button {
    background-color: #25D366;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.call-button {
    background-color: #007bff;
}

.call-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.button-icon {
    width: 20px !important;
    height: 20px !important;
    margin-right: 8px;
}

.category-label {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0,0,0,0.5);
    color: white;
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 10px;
    z-index: 10;
}

.dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid #e0e0e0;
}

.dock button {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 33.33%;
    padding: 8px 0;
    color: #777;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.dock button svg {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
}

.dock-active {
    color: #1a3c61 !important;
}

.dock-label {
    margin-top: 4px;
}

.page-section {
    display: none;
    overflow-x: auto;
    overflow-y: auto;
}

.page-section.active {
    display: block;
}

.categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    padding: 15px;
}

.category-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
}

.category-item:hover, .category-item:active {
    transform: translateY(-2px);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.12);
    background-color: #f8f8f8;
}

.category-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-align: left;
}

.category-count {
    background-color: #eaeaea;
    color: #555;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.about-section {
    padding: 20px;
    text-align: left;
}

.about-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.about-card h2 {
    font-size: 18px;
    color: #1a3c61;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.about-info p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.map-container {
    height: 200px;
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.direction-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a3c61;
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    margin-top: 15px;
    transition: all 0.3s;
}

.direction-button:hover {
    background-color: #2a4c71;
}

.direction-button svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.category-title {
    text-align: left;
    margin: 20px 15px 10px;
    font-size: 18px;
    color: #1a3c61;
    padding-bottom: 8px;
    border-bottom: 2px solid #1a3c61;
}

.back-button {
    display: inline-flex;
    align-items: center;
    margin: 15px;
    padding: 8px 12px;
    background-color: #f0f0f0;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: all 0.3s;
}

.back-button:hover {
    background-color: #e0e0e0;
}

.back-button svg {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .catalog {
        grid-template-columns: repeat(2, 1fr); /* Maintain two columns */
        gap: 8px;
        padding: 8px;
    }

    .item {
        min-height: 160px;
    }
}

@media screen and (max-width: 400px) {
    .catalog {
        grid-template-columns: repeat(2, 1fr); /* Still two columns */
        gap: 6px;
        padding: 6px;
    }

    .item {
        min-height: 150px;
    }
}

/* Responsive image and carousel scaling */
.item-image-container, .carousel-container {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image-container img, .carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Prevent horizontal scrolling */
* {
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: transparent;
}