/* ========== COMMON STYLES ========== */
.sg-slider-container {
    width: 100%;
    padding: 20px 0;
    position: relative;
    height: 100%;
    overflow: visible;
    /* Allows arrows to sit outside top */
}

/* Navigation Arrows - Top Right */
.sg-nav-prev,
.sg-nav-next {
    position: absolute;
    top: -45px;
    /* Pulls arrows up to align with Heading */
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 99;
    font-size: 0;
    /* Hides text nodes if any */
}

.sg-nav-prev {
    right: 50px;
    /* 40px width + 10px gap */
    left: auto;
    /* Reset left */
    color: #999;
    /* Grey Icon */
}

.sg-nav-prev:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #ddd;
}

.sg-nav-next {
    right: 0;
    left: auto;
    /* Reset left */
    background: #e53935;
    border-color: #e53935;
    color: #fff;
    /* White Icon */
}

.sg-nav-next:hover {
    background: #c62828;
    color: #fff;
    border-color: #c62828;
}

/* ========== CATEGORY GRID (Card Style) ========== */
.sg-cat-wrapper {
    padding: 20px 0;
    width: 100%;
}

.sg-cat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.sg-cat-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.sg-cat-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.sg-cat-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.sg-cat-cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

.sg-cat-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    height: 100%;
    position: relative;
    padding: 15px;
    box-shadow: 0 0 0 1px #eee;
}

.sg-cat-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    z-index: 2;
}

.sg-cat-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 5px;
}

.sg-cat-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

.sg-cat-star {
    color: #e53935;
    font-size: 12px;
}

.sg-cat-reviews {
    color: #aaa;
    font-size: 10px;
    margin-left: 2px;
}

.sg-cat-image {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin-bottom: 10px;
}

.sg-cat-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s;
}

.sg-cat-card:hover .sg-cat-image img {
    transform: scale(1.08);
}

.sg-cat-no-image {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    border-radius: 4px;
}

.sg-cat-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.sg-cat-info {
    flex: 1;
    padding-right: 10px;
}

.sg-cat-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.sg-cat-count {
    font-size: 11px;
    color: #888;
    display: block;
}

.sg-cat-arrow {
    color: #333;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.sg-cat-card:hover .sg-cat-arrow {
    transform: translate(3px, -3px);
}

/* ========== PRODUCT CARDS ========== */
.sg-product-card {
    background: none;
    height: 100%;
    transition: all 0.3s ease;
    border: none;
    /* Removed border to match clean reference */
    /* Optional: Subtle shadow for depth if desired, or flat */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.sg-product-card:hover {
/*     box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); */
    /* Stronger lift on hover */
    transform: translateY(-5px);
    z-index: 2;
}

.sg-product-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.sg-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 20px 0 20px;
    /* Internal padding for header */
    min-height: 24px;
	background: #fff;
}

.sg-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 2px;
    /* Sharper corners */
    letter-spacing: 0.5px;
    line-height: 1;
}

.sg-badge-limited,
.sg-badge-custom {
    background: #fff5f5;
    color: #e53935;
}

.sg-badge-outofstock {
    background: #f5f5f5;
    color: #666;
}

.sg-badge-new {
    background: #e3f2fd;
    color: #2196f3;
}

.sg-badge-sale {
    background: #ffebee;
    color: #e53935;
}

.sg-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #999;
}

.sg-product-rating .sg-star {
    color: #e53935;
    font-size: 13px;
}

.sg-product-image {
    width: 100%;
    /* Create a square container */
    aspect-ratio: 1 / 1;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 0;
	background: #fff;
}

.sg-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.sg-product-card:hover .sg-product-image img {
    transform: scale(1.08);
}

.sg-product-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    border-top: none;
    /* Removed border */
    padding: 20px 20px 20px 20px;
    /* Padding bottom/sides */
    gap: 15px;
}

.sg-product-info-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.sg-product-cat {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sg-product-title {
    font-size: 13px;
    font-weight: 600;
    /* Reduced from 700 slightly */
    color: #222;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Added for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sg-product-price {
    font-size: 13px;
    font-weight: 500;
    color: #222;
    white-space: nowrap;
    text-align: right;
    margin-bottom: 2px;
    flex-shrink: 0;
}

.sg-product-price del {
    color: #aaa;
    font-size: 11px;
    margin-right: 4px;
}


/* ========== TESTIMONIALS SLIDER ========== */
.tm-container {
    width: 100%;
    padding: 20px 0;
    position: relative;
    overflow: visible;
}

/* Red/White Arrows for TM */
.tm-nav-prev,
.tm-nav-next {
    position: absolute;
    top: -35px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 99;
}

.tm-nav-prev {
    right: 50px;
    left: auto;
    color: #999;
}

.tm-nav-prev:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #ddd;
}

.tm-nav-next {
    right: 0;
    left: auto;
    background: #e53935;
    border-color: #e53935;
    color: #fff;
}

.tm-nav-next:hover {
    background: #c62828;
    color: #fff;
    border-color: #c62828;
}

.tm-swiper {
    overflow: hidden;
}

.tm-card {
    background: #faf6f6;
    /* Subtle Pink as per Ref */
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    transition: transform 0.3s;
}

.tm-card:hover {
    border-color: #ddd;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.tm-stars {
    color: #e53935;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.tm-content {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    flex: 1;
    margin-bottom: 25px;
    font-weight: 400;
}

.tm-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.tm-photo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.tm-photo-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e0e0e0;
}

.tm-info {
    display: flex;
    flex-direction: column;
}

.tm-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.tm-designation {
    font-size: 12px;
    color: #888;
}

/* ========== PRODUCT REVIEWS ========== */
.sg-reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.sg-review-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sg-review-image {
    position: relative;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-color: #333;
}

.sg-review-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.sg-review-stars {
    margin-bottom: 10px;
}

.sg-review-stars .star {
    color: #ff4444;
    font-size: 16px;
    margin-right: 2px;
}

.sg-review-text {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 12px;
    color: #fff;
}

.sg-review-author {
    font-size: 12px;
    color: #ccc;
}

.sg-review-author .name {
    font-weight: 600;
    color: #fff;
}

.sg-review-author .location {
    color: #aaa;
}

/* ========== RESOURCES SLIDER ========== */
.sg-res-container {
    width: 100%;
    padding: 20px 0;
    position: relative;
    /* Ensure arrows are visible outside if needed */
    overflow: visible;
}

.sg-res-card {
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.sg-res-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.sg-res-image {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.sg-res-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sg-res-card:hover .sg-res-image img {
    transform: scale(1.1);
}

.sg-res-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e53935;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.sg-res-play-btn svg {
    margin-left: 4px;
}

.sg-res-card:hover .sg-res-play-btn {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.sg-res-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #e53935;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.sg-res-content {
    padding: 15px 20px 20px 20px;
    /* Reduced top padding to move text up */
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sg-res-title {
    font-size: 12px;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.sg-res-desc {
    font-size: 10px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex: 1;
}

.sg-res-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #e53935;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    margin-top: auto;
}

.sg-res-link:hover {
    color: #c62828;
}

.sg-res-link svg {
    transition: transform 0.3s;
}

.sg-res-link:hover svg {
    transform: translate(3px, -3px);
}


/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {

    .sg-cat-cols-5,
    .sg-cat-cols-6 {
        grid-template-columns: repeat(4, 1fr);
    }

    .sg-grid-cols-5,
    .sg-grid-cols-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {

    .sg-cat-cols-3,
    .sg-cat-cols-4,
    .sg-cat-cols-5,
    .sg-cat-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .sg-grid-cols-3,
    .sg-grid-cols-4,
    .sg-grid-cols-5,
    .sg-grid-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .sg-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sg-res-image {
        height: 180px;
    }

    .sg-res-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {

    .sg-cat-grid,
    .sg-reviews-grid,
    .sg-grid {
        grid-template-columns: 1fr !important;
    }
}
.sg-swiper {
    overflow: hidden;
}















/* Product Header Layout Fix */
/* Header alignment fix - SALE left / Rating Right same level */
.sg-product-header{
    display:flex;
    justify-content:space-between;
    align-items:center;               /* ⭐ Center vertically align */
    padding:0 5px;
}

/* Badge perfect left alignment */
.sg-badge{
    margin-right:auto;
    display:inline-block;
    line-height:1;
}

/* Rating row align center & right side stick */
.sg-product-rating{
    display:flex;
    align-items:center;               /* ⭐ Vertical fix */
    gap:4px;
    margin-left:auto !important;
    line-height:2.5;                    /* ⭐ Less height */
}

/* Reviews text balanced */
.sg-product-rating .sg-reviews{
    font-size:12px;
    opacity:.8;
    margin-top:1px;                   /* ⭐ adjust if needed: 0,1,2 try */
}

/* Star size adjust */
.sg-star{
    font-size:14px;
    font-weight:bold;
    margin-top:1px;                   /* star ko thoda adjust */
}
