/* Container & Heading */
.gt-widget-container { margin-bottom: 40px; }
.gt-section-heading {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.gt-section-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #24aeb1; 
}

/* Grid & Layout */
.gt-product-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) {
    .gt-product-grid-wrapper {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px;
        scrollbar-width: thin;
    }
    .gt-custom-product-card {
        min-width: calc(33.333% - 14px);
        scroll-snap-align: start;
        flex-shrink: 0;
    }
}
@media (max-width: 767px) {
    .gt-custom-product-card { min-width: 100%; }
}

/* Card Styling */
.gt-custom-product-card {
    border-radius: 12px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.gt-custom-product-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.gt-card-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}
.gt-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    margin-top: 15px;
}
.gt-product-title a {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: 15px;
}

/* 3 Design Styles */
.gt-style-1 { background: #ffffff; box-shadow: 0 2px 10px rgba(0,0,0,0.04); border: none; }
.gt-style-1 .gt-card-image { background: #f4f6f8; padding: 15px; border-radius: 8px; }
.gt-style-2 { background: #f8faff; border: none; }
.gt-style-2 .gt-card-image { background: #ffffff; padding: 15px; border-radius: 8px; }
.gt-style-3 { background: #ffffff; border: 1px solid #e0e6ed; }
.gt-style-3 .gt-card-image { background: #ffffff; padding: 10px; }

/* Actions & Quantity Wrap */
.gt-card-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
.gt-qty-wrap {
    width: 70px;
    flex-shrink: 0;
}
.gt-qty-input {
    width: 100%;
    padding: 10px 5px;
    border: 1px solid #e0e6ed;
    border-radius: 25px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    background: #fff;
}
.gt-qty-input::-webkit-outer-spin-button,
.gt-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add To Cart Inquiry Button (Default State) */
.gt-card-actions .gt_custom_add_to_cart {
    background-color: #24aeb1 !important;
    color: #ffffff !important;
    border: none;
    padding: 12px 10px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    cursor: pointer;
    line-height: 1.2;
    transition: 0.3s ease;
}
.gt-card-actions .gt_custom_add_to_cart:hover {
    background-color: #1c8687 !important;
}

/* Button States (Added & Add More) */
.gt-card-actions .gt_custom_add_to_cart.added {
    background-color: #dc2626 !important; /* Standard Red when added */
}
.gt-card-actions .gt_custom_add_to_cart.update-ready {
    background-color: #f59e0b !important; /* Orange when changing quantity */
}

/* ==========================================
   CATEGORY GRID WIDGET STYLES
   ========================================== */

/* Centered Heading */
.gt-cat-section-heading {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin-bottom: 35px;
    text-align: center;
}

/* 5 Columns Grid Desktop */
.gt-category-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Tablet: 4 Items Swipeable Slider */
@media (max-width: 1024px) {
    .gt-category-grid-wrapper {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        scrollbar-width: thin;
    }
    .gt-custom-category-card {
        min-width: calc(25% - 15px); /* 4 Columns */
        scroll-snap-align: start;
        flex-shrink: 0;
    }
}

/* Mobile: 2 Items Swipeable Slider */
@media (max-width: 767px) {
    .gt-custom-category-card {
        min-width: calc(50% - 10px); /* 2 Columns */
    }
    .gt-cat-section-heading {
        font-size: 22px;
    }
}

/* Category Card Styling */
.gt-custom-category-card {
    background: #ffffff;
    border: 1px solid #f9ecec; /* Very light border as per reference */
    border-radius: 15px;
    padding: 25px 15px 20px;
    text-align: center;
    transition: all 0.3s ease;
}
.gt-custom-category-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transform: translateY(-5px);
}
.gt-cat-card-link {
    text-decoration: none;
    display: block;
}

/* Circular Dashed & Solid Image Wrapper */
.gt-cat-image-outer {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 2px dashed #24aeb1; /* Outer dashed brand color */
    padding: 4px;
    transition: all 0.3s ease;
}
.gt-custom-category-card:hover .gt-cat-image-outer {
    border-color: #1c8687;
    transform: rotate(5deg) scale(1.03); /* Slight animation on hover */
}
.gt-cat-image-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #24aeb1; /* Inner solid brand color */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8faff;
}
.gt-cat-image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gt-custom-category-card:hover .gt-cat-image-inner {
    border-color: #1c8687;
}

/* Divider Line */
.gt-cat-divider {
    width: 100%;
    height: 1px;
    background-color: #eaeaea;
    margin: 15px auto;
}

/* Category Title */
.gt-cat-title {
    font-size: 16px;
    color: #111;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}
.gt-custom-category-card:hover .gt-cat-title {
    color: #24aeb1;
}

/* Hide scrollbar for slider wrappers */
.gt-product-grid-wrapper::-webkit-scrollbar,
.gt-category-grid-wrapper::-webkit-scrollbar {
    display: none;
}
.gt-product-grid-wrapper,
.gt-category-grid-wrapper {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}