/* --- ENHANCED LOADER STYLES --- */
.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(253, 248, 238, 0.85); /* #fdf8ee with transparency */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
}

.loader-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.premium-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(221, 99, 78, 0.1);
    border-left-color: #dd634e;
    border-radius: 50%;
    animation: premium-spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    box-shadow: 0 0 20px rgba(221, 99, 78, 0.15);
}

.loading-text {
    color: #402a1f;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    letter-spacing: 0.5px;
    animation: loader-pulse 2s ease-in-out infinite;
}

@keyframes premium-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes loader-pulse {
    0%,
    100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}
/* --- END LOADER STYLES --- */

/* Global Fix for Horizontal Scroll */
body {
    overflow-x: hidden;
    width: 100%;
}

/* --- NEW STYLE UPDATES --- */
@font-face {
    font-family: "Kokila";
    src: url("../Kokila.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@100..900&display=swap");

/* Global Font Family */
body,
html,
h1,
h2,
h3,
h4,
h5,
h6,
a,
span,
p,
div,
input,
button,
select,
textarea {
    font-family: "Mukta", sans-serif !important;
}

/* Restore Icon Fonts */
.fa,
.fas {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}
.far {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 400 !important;
}
.fab {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
}
.ion {
    font-family: "Ionicons" !important;
}

/* Header V2 Styles */
.header-v2 {
    background: #fdf8ee !important;
    z-index: 1000;
    position: relative;
    width: 100%;
}

.header-row-1 {
    background: #fdf8ee !important;
    width: 100%;
    overflow: visible;
    position: relative;
    z-index: 2000;
}

.header-row-2 {
    background: #fdf8ee !important;
    width: 100%;
    overflow: visible;
    position: relative;
    z-index: 1000;
}

.header-v2,
.header-v2 a,
.header-v2 span,
.header-v2 i,
.header-v2 .text-field {
    color: #93573b !important;
}

.header-v2 .text-field::placeholder {
    color: #93573b !important;
    opacity: 0.7;
}

/* Footer Styles */
.footer {
    background-color: #f6dfc0 !important;
}

.footer,
.footer h6,
.footer h1,
.footer p,
.footer a,
.footer span,
.footer i {
    color: #93573b !important;
}

/* Global Theme Updates */
body,
html {
    background-color: #fdf8ee !important;
}

h1:not(.slide-content h1),
h2:not(.slide-content h2),
h3,
h4,
h5,
h6 {
    color: #dd634e !important;
}

a {
    color: #402a1f;
}

a:hover {
    color: #e88d7d !important; /* Lighter version of #dd634e */
}

/* Fix Login Dropdown Z-index */
.profile-link-wrapper .g-dropdown {
    z-index: 2000 !important;
}
/* Refined Writer Corner Styles */
.writer-header-hindi {
    margin-bottom: 30px;
}

.writer-header-hindi h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #dd634e !important;
    margin-bottom: 5px;
}

.writer-header-hindi p {
    font-size: 1.1rem;
    color: #402a1f;
    opacity: 0.9;
}

.writer-category-tabs-wrapper {
    position: relative;
    padding: 0 40px;
    margin-bottom: 20px;
    overflow: visible; /* Changed to visible */
}

.writer-category-tabs {
    display: flex;
    align-items: center;
    padding-bottom: 200px; /* Hack to show dropdowns */
    margin-bottom: -200px; /* Pull content back up */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
}

/* Pseudo-element for the border to keep it under the text */
.writer-category-tabs::after {
    content: "";
    position: absolute;
    bottom: 200px; /* Match the hack padding */
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
    z-index: -1;
}

.writer-category-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.writer-category-tabs .tab-item {
    padding: 10px 15px;
    color: #402a1f;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    font-size: 0.95rem;
}

.writer-tabs-arrow {
    position: absolute;
    top: 22px; /* Center with text */
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 110;
    color: #402a1f;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.writer-tabs-arrow:hover {
    background: #dd634e;
    color: #fff;
    border-color: #dd634e;
}

.writer-tabs-arrow.prev {
    left: 0;
}

.writer-tabs-arrow.next {
    right: 0;
}

.writer-category-tabs .tab-item.active {
    color: #402a1f;
}

.writer-category-tabs .tab-item.active::after {
    content: "";
    position: absolute;
    bottom: 200px; /* Align with border hack */
    left: 0;
    width: 100%;
    height: 3px;
    background: #dd634e;
}

.tab-item-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
}

.tab-item-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
}

.tab-item-dropdown .dropdown-toggle::after {
    margin-left: 0.4em;
    vertical-align: middle;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.tab-item-dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    z-index: 1051;
    position: absolute;
}

.tab-item-dropdown .dropdown-item {
    font-size: 0.85rem;
    font-weight: 500;
    color: #402a1f;
    transition: all 0.2s;
}

.tab-item-dropdown .dropdown-item:hover,
.tab-item-dropdown .dropdown-item.active {
    background-color: #fdf8ee;
    color: #dd634e;
}

.refined-search-wrap {
    position: relative;
    margin-bottom: 25px;
}

/* Premium Card Styles Refined */
.kavita-card-premium {
    background: #fff;
    border: none !important; /* Removed rigid border */
    border-radius: 20px !important;
    padding: 1.5rem !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(#fdf8ee 0.5px, transparent 0.5px);
    background-size: 15px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03); /* Soft shadow instead of border */
}

.kavita-card-premium::before {
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.2rem;
    color: #dd634e;
    opacity: 0.08;
}

.kavita-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(221, 99, 78, 0.1) !important;
}

.kavita-image-circular {
    width: 120px;
    height: 120px;
    border-radius: 50% !important;
    overflow: hidden;
    margin-bottom: 1.2rem;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background: #eee;
}

.kavita-image-circular img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.kavita-card-premium:hover .kavita-image-circular img {
    transform: scale(1.1);
}

.kavita-title-hindi {
    font-family: "Laila", serif;
    color: #402a1f;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Horizontal Kavita Cards */
.kavita-card-horizontal {
   background: #fff;
    border: none !important;
    border-radius: 15px;
    padding: 0.6rem 1rem !important; /* Reduced padding */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    text-align: left !important;
    gap: 1.2rem; /* Tighter gap */
    margin-bottom: 1rem;
    background-image: radial-gradient(#fdf8ee 0.5px, transparent 0.5px);
    background-size: 15px 15px;
    text-decoration: none !important; /* For link card */
    color: inherit !important; /* For link card */
}

.kavita-card-horizontal:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(221, 99, 78, 0.08) !important;
    background-color: #fdfdfd;
      color: #dd634e !important; /* Subtle color shift on hover */
}

.kavita-card-horizontal .kavita-image-circular {
   width: 45px; /* Reduced size */
    height: 45px; /* Reduced size */
    margin-bottom: 0; /* Override vertical margin */
    flex-shrink: 0;
}

.kavita-card-horizontal .kavita-title-hindi {
    margin-bottom: 0;
   font-size: 1.05rem;
    flex-grow: 1;
}

.kavita-card-horizontal .btn-premium-read {
  display: none !important;
}

/* Kavita Detail Image */
.kavita-detail-image-container {
    max-width: 100%;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.kavita-detail-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Icon Spacing Utility */
.icon-text-gap i {
    margin-right: 12px !important;
}

/* Full Width Bio Layout */
.bio-section-full {
    margin-bottom: 2.5rem;
    width: 100%;
}

.bio-section-full h4 {
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.ebook-card-premium {
    background: #ffffff;
    border: 1px solid #eef2f7 !important;
    border-radius: 18px !important;
    padding: 1.5rem !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ebook-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06) !important;
    border-color: #d1d9e6 !important;
}

.ebook-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #fff5f3 0%, #fdecea 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(221, 99, 78, 0.05);
    border: 1px solid #fff;
}

.ebook-card-premium:hover .ebook-icon-wrapper {
    transform: scale(1.1) rotate(8deg);
    background: linear-gradient(135deg, #dd634e 0%, #c54a36 100%);
    box-shadow: 0 8px 20px rgba(221, 99, 78, 0.25);
}

.ebook-card-premium:hover .ebook-icon-wrapper i {
    color: #fff !important;
}

.btn-premium-read {
    background: #402a1f;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0.55rem 1.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-premium-read:hover {
    background: #dd634e;
    color: #fff;
    box-shadow: 0 5px 15px rgba(221, 99, 78, 0.3);
    transform: translateY(-1px);
}
.refined-search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    font-size: 1rem;
}

.refined-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
}

.refined-filter-icon {
    position: absolute;
    right: -35px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
}

.alphabet-strip-wrapper {
    position: relative;
    padding: 0 40px;
    margin-bottom: 40px;
}

.alphabet-strip {
    background: #f3e4c9;
    display: flex;
    overflow-x: auto;
    border-radius: 4px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.alphabet-strip::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.alphabet-strip .letter-link {
    flex-shrink: 0;
    width: 35px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #402a1f;
    font-weight: 500;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
}

.alphabet-strip .letter-link:last-child {
    border-right: none;
}

.alphabet-strip .letter-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.alphabet-strip .letter-link.active {
    background: #7d4b31;
    color: #fff !important;
}

.writer-list-item {
    background: #fdf8ee;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.writer-list-item:hover {
    background: #fcf1de;
}

.writer-list-photo-wrap {
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 50%;
    margin-right: 25px;
    flex-shrink: 0;
    border: 1px solid #f6dfc0;
    padding: 0;
    overflow: hidden;
}

.writer-list-photo-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}

.writer-list-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.writer-list-content {
    flex-grow: 1;
}

.writer-list-name {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #007bff !important;
    text-decoration: none;
    margin-bottom: 5px;
}

.writer-list-bio {
    display: block;
    font-size: 1rem;
    color: #402a1f;
    margin-bottom: 8px;
    line-height: 1.4;
}

.writer-list-count {
    font-size: 0.95rem;
    color: #007bff;
    text-decoration: none;
}

.writer-list-years {
    flex-shrink: 0;
    margin-left: 20px;
    font-size: 0.95rem;
    color: #402a1f;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #eee;
    padding-left: 20px;
    min-width: 150px;
}

.writer-list-years i {
    width: 20px;
    margin-right: 5px;
    color: #dd634e;
    opacity: 1;
}

@media (max-width: 768px) {
    .writer-list-item {
        flex-direction: column;
        text-align: center;
    }
    .writer-list-photo-wrap {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .writer-list-years {
        margin-left: 0;
        margin-top: 15px;
    }
    .refined-filter-icon {
        display: none;
    }
}

/* --- END NEW STYLE UPDATES --- */

.header-actions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-actions li {
    margin-left: 15px;
    position: relative;
    display: flex;
    align-items: center;
}

.header-actions li > a {
    text-decoration: none;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.3s;
    position: relative;
    padding-top: 5px;
}

.header-actions li i {
    font-size: 22px;
    margin-bottom: 2px;
}

.action-label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.header-v2 .header-actions .badge-notification {
    background: #ff0000; /* Red color */
    color: #ffffff !important;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(8px); /* Offset slightly to the right of center */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 10;
    line-height: 1;
}

/* Fix for g-nav dropdowns in Row 1 & 2 */
.header-v2 .secondary-nav.g-nav {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    width: 100%;
    justify-content: space-around;
}

.header-v2 .secondary-nav.g-nav > li {
    position: relative;
    list-style: none;
}

/* Fix dropdown vertical positioning and alignment */
.header-v2 .g-nav > li > .g-dropdown {
    top: 100% !important; 
    margin-top: 2px; 
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block; 
    text-align: left !important;
    right: 0 !important; 
    left: auto !important;
    background: rgba(253, 248, 238, 0.98) !important; 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 35px rgba(147, 87, 59, 0.1) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(147, 87, 59, 0.05) !important;
    border-top: 3px solid #dd634e !important; 
    transform-origin: top right;
    min-width: 180px;
    padding: 8px 0 !important;
}

.header-v2 .g-nav > li:hover > .g-dropdown {
    visibility: visible;
    opacity: 1;
    animation: header-dropdown-slide 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.header-v2 .g-nav > li > .g-dropdown li a {
    padding: 6px 15px !important; 
    font-size: 14px !important;
}

/* Ensure original searchbox fits well */
.header-v2 .form-searchbox {
    margin: 0 auto;
    max-width: 100%;
     overflow: visible !important;
}
.search-input-wrapper {
    position: relative;
    z-index: 10;
}

.form-searchbox button#btn-search {
    z-index: 20;
}
.app-brand-logo {
    max-height: 80px;
}

/* Adjust Row 2 spacing and allow dropdown overflow */
.header-row-2 {
    overflow: visible !important;
}

.header-row-2 .container,
.header-row-2 .row {
    min-height: 60px;
    overflow: visible !important;
    position: relative !important; /* Pivot for full-width mega-menus */
}

.v-menu,
.v-wrapper {
    overflow: visible !important;
}

/* Force Row 2 columns to allow overflow for mega-menus and fly-outs */
.header-row-2 div[class^="col-"] {
    overflow: visible !important;
    position: relative;
    z-index: 1051;
}

/* Fix vertical menu fly-out (v-drop-right) visibility */
.v-list > li {
    position: relative !important;
}

.js-backdrop:hover .v-drop-right {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    z-index: 9999 !important;
}

.v-drop-right {
    top: 0 !important;
    left: 100% !important;
    margin-left: -1px; /* Overlap slightly for better hover stability */
    z-index: 10000 !important;
    background: #fdf8ee !important; /* Match header bg */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #eeeeee;
    min-width: 200px;
}

/* Multi-level Dropdown Support */
.has-submenu {
    position: relative;
}

.has-submenu:hover > .v-drop-right {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.g-nav > li > .g-dropdown li {
    position: relative;
}

/* Preloader/Loader/Loading Page/Preloading Screen */
.loader {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: url("../images/loaders/loader.gif") 50% 50% no-repeat
        rgb(249, 249, 249);
    opacity: 0.8;
}

/* Home Page Action Icons Fix */
.item-quick-look,
.item-mail,
.item-addwishlist,
.item-addCart {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

.item-quick-look:before {
    content: "\f002" !important; /* Search/Quick Look */
}

.item-mail:before {
    content: "\f0e0" !important; /* Mail */
}

.item-addwishlist:before {
    content: "\f004" !important; /* Heart/Wishlist */
}

.item-addCart:before {
    content: "\f07a" !important; /* Cart */
}

/* Specific positioning for Horizontal Nav dropdowns */
/* Simple dropdowns (E-Pustakalaye, Kohbar) should be relative to their item */
.horizontal-nav .g-nav > li.profile-link-wrapper {
    position: relative !important;
}

/* Mega Menu items (Books) should be static to allow full-width dropdown */
/* .horizontal-nav .g-nav > li.profile-link-wrapper.has-mega-menu {
    position: static !important;
} */

.horizontal-nav
    .g-nav
    > li.profile-link-wrapper
    .g-dropdown:not(.mega-menu-dropdown) {
    left: 0 !important;
    right: auto !important;
}

.horizontal-nav .v-drop-right {
    position: absolute;
    top: 0;
    left: 100%;
    width: 200px;
    background: #fdf8ee !important; /* Match header bg */
    border: 1px solid #eeeeee;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    z-index: 10001;
    padding: 10px 0;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.horizontal-nav .v-drop-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.horizontal-nav .v-drop-right ul li a {
    padding: 8px 20px !important;
    font-size: 13px !important;
}

/* Mega Menu Divider Fix */
.mega-menu-dropdown div[class^="col-md-"] {
    border-right: 1px solid #eee;
    padding: 0 20px;
}

.mega-menu-dropdown div[class^="col-md-"]:last-child {
    border-right: none;
}

/* Horizontal Categories Nav */
.horizontal-nav {
    width: 100%;
}

.horizontal-nav .g-nav {
    display: flex;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    list-style: none;
    align-items: center;
}

.horizontal-nav .g-nav > li {
    margin-right: 7px;
    position: relative !important; /* Allows children to align relative to the link */
}

.horizontal-nav .g-nav > li > a {
    display: block;
    padding: 16px 0; /* Adjusted to 16px to align with 52px total height */
    font-weight: 600;
    font-size: 15.5px;
    text-transform: uppercase;
    transition: color 0.3s;
    line-height: normal;
}

/* Mega Menu Dropdown Refinement */
.header-v2 .g-nav > li .mega-menu-dropdown {
    width: 450px !important; /* Balanced for 2 columns */
    min-width: 300px;
    padding: 20px !important; /* Increased padding as requested */
    left: 0 !important; /* Left-align below trigger */
    right: auto !important;
    transform: none !important; 
    top: 100% !important; 
    margin-top: 2px !important; 
    z-index: 10005 !important;
    box-shadow: 0 15px 45px rgba(147, 87, 59, 0.15) !important;
    border-radius: 10px !important;
    background: rgba(253, 248, 238, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(147, 87, 59, 0.05) !important;
    border-top: 3px solid #dd634e !important; 
    transform-origin: top left; /* Match left alignment */
    animation: header-dropdown-slide 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes header-dropdown-slide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-v2 .g-nav > li .mega-menu-dropdown div[class^="col-"] {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 0 15px !important;
    margin-bottom: 0px !important;
}

.category-title {
    margin: 0;
    padding: 0;
    border-bottom: none; /* Remove border to match standard items */
}

.category-title a {
    color: #402a1f !important; /* Default dark text color */
    font-weight: 500 !important; /* Match standard dropdown weight */
    font-size: 14px !important; /* Match standard size */
    text-transform: capitalize; /* Removed uppercase */
    display: block !important;
    padding: 6px 15px !important; /* Match exact padding of e-pustakalay items */
    letter-spacing: normal;
    transition: all 0.2s ease;
}

.category-title:hover a {
    color: #dd634e !important; /* Same hover effect as other links */
    background: rgba(221, 99, 78, 0.05); /* Subtle hover background */
}

.dropdown-category-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0; /* Reduced */
}

.subcategory-item {
    margin-bottom: 2px; /* Minimal margin */
}

.subcategory-item a {
    font-size: 13px !important;
    font-weight: 400 !important;
    display: block !important;
    padding: 0px 0 !important; /* Removed vertical padding entirely */
    transition: all 0.2s ease;
}

.subcategory-item a:hover {
    color: #dd634e !important;
    padding-left: 3px !important; /* Minimal shift */
}

@media (max-width: 991px) {
    .header-actions li {
        margin-left: 15px;
    }
    .action-label {
        display: none;
    }
    .horizontal-nav .g-nav {
        flex-wrap: wrap;
    }
    .horizontal-nav .g-nav > li {
        margin-right: 7px;
    }
    .mega-menu-dropdown {
        width: 100% !important;
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        padding: 15px !important;
    }
    .header-row-2 .col-md-3,
    .header-row-2 .col-md-6 {
        margin-bottom: 10px;
    }
}

.sec-maker-h3 {
    font-size: 30px !important;
}
@media (max-width: 768px) {
    .sec-maker-h3 {
        font-size: 20px !important;
        margin-bottom: 0px !important;
    }
}

/* Sidebar Category Styles */
.fetch-categories ul {
    list-style: none;
    padding: 0;
}

.fetch-categories .p-l-20 {
    padding-left: 20px !important;
}

.sub-categories-list {
    margin-top: 5px;
    margin-bottom: 5px;
}

.toggle-sub {
    transition: transform 0.3s;
    font-size: 14px;
    color: #dd634e;
}

.toggle-sub:hover {
    color: #402a1f;
}

/* ================= DESKTOP SAFETY (IMPORTANT) ================= */
.mobile-menu,
.mobile-menu-backdrop,
.mobile-menu-toggle {
    display: none;
}

.no-scroll {
    overflow: hidden;
}

/* ================= MOBILE HEADER + SLIDE MENU ================= */
@media (max-width: 991px) {
    .mobile-menu,
    .mobile-menu-backdrop,
    .mobile-menu-toggle {
        display: block;
    }
}
@media (max-width: 991px) {

    .header-row-1 .row {
        display: flex;
        align-items: center;
    }

    .brand-logo img {
        max-height: 46px;
        max-width: 140px;
        width: auto;
    }

    .header-actions {
        display: flex;
        justify-content: flex-end;
        gap: 4px;
        flex-wrap: nowrap;
    }

    .header-actions li {
        margin-left: 0px;
    }

    /* Column Order and Tighter Spacing */
    .header-row-1 .col {
        order: 2;
        text-align: left !important;
    }

    .brand-logo-text .logo-link {
        justify-content: flex-start !important;
        gap: 2px !important;
    }

    .logo-text {
        text-align: left;
    }

    .header-row-1 .col-3,
    .header-row-1 .col-auto:not(.d-lg-none) {
        order: 3;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    /* Search Bar Full Width Bottom */
    .header-row-1 .col-lg-6 {
        order: 4;
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .form-searchbox {
        width: 100%;
    }

    /* Hide desktop menu */
    .header-row-2 {
        display: none !important;
    }

    /* Slide Menu */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 300px;
        height: 100%;
        background: #fdf8ee;
        z-index: 10001;
        transition: left 0.35s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }

    .mobile-menu.active {
        left: 0;
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        font-weight: 700;
        border-bottom: 1px solid #ddd;
        color: #93573b;
    }

    .mobile-menu-header button {
        background: transparent;
        border: none;
        font-size: 20px;
        color: #93573b;
    }

    .mobile-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu-list li a {
        display: block;
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
        color: #402a1f;
        font-weight: 600;
        text-decoration: none;
        flex: 1;
    }

    .menu-item-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #eee;
        background: #fdf8ee;
    }

    .menu-item-wrapper a {
        border-bottom: none !important;
    }

    .mobile-submenu-toggle {
        padding: 12px 20px;
        cursor: pointer;
        color: #93573b;
        transition: transform 0.3s ease;
        border-left: 1px solid #eee;
    }

    .mobile-submenu-toggle.active i {
        transform: rotate(90deg);
    }

    .mobile-submenu {
        display: none;
        list-style: none;
        padding: 0;
        margin: 0;
        background: rgba(147, 87, 59, 0.05);
    }

    .mobile-submenu li a {
        padding-left: 30px;
        font-size: 14px;
        font-weight: 500;
    }

    .mobile-submenu.tier-2 li a {
        padding-left: 45px;
        font-size: 13px;
        font-weight: 400;
    }

    .mobile-menu-list li a:hover {
        background: #f6dfc0;
    }

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }

    .mobile-menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
}
@media (max-width: 991px) {
    .header-icons-mobile {
        display: flex;
        justify-content: flex-end;
        padding-right: 5px;
        min-width: 130px; /* Ensure enough space for icons */
    }

    .header-actions {
        justify-content: flex-end;
        gap: 2px;
    }

    /* Fix Homepage Banner Overlap on Mobile */
    .default-height {
        height: auto !important;
        min-height: 150px;
    }

    .bg-image {
        height: auto !important;
        min-height: 150px;
        background-size: cover;
    }

    .slide-content {
        position: relative !important;
        top: 0 !important;
        transform: none !important;
        padding: 0 !important;
    }

    .slide-content h1 {
        margin: 0 !important;
        line-height: 0 !important;
    }

    .slide-content img {
        width: 100% !important;
        height: auto !important;
        display: block;
    }
}

/* Row Narrow Utility for tighter product gaps */
.row-narrow {
    margin-left: -10px !important;
    margin-right: -10px !important;
}

.row-narrow > [class^="col-"] {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.row-narrow .item {
    margin-bottom: 20px;
}

/* Horizontal scrolling for mobile products */
@media (max-width: 768px) {
    .scroll-mobile-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        padding-bottom: 5px !important;
        margin-left: -5px !important;
        margin-right: -5px !important;
        -webkit-overflow-scrolling: touch;
    }

    .scroll-mobile-row::-webkit-scrollbar {
        display: none;
    }

    .scroll-mobile-row > [class^="col-"] {
        flex: 0 0 calc(45% - 5px) !important; /* Show 2 items and a hint of the 3rd */
        max-width: calc(45% - 5px) !important;
        scroll-snap-align: start;
        padding-left: 2.5px !important;
        padding-right: 2.5px !important;
    }

    .scroll-mobile-row .item {
        margin-bottom: 0 !important;
    }

    /* Smaller icons on bottom for mobile */
    .item-action-behaviors {
        bottom: 5px !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        text-align: center !important;
        opacity: 1 !important;
        padding: 0 !important;
    }

    .item-quick-look,
    .item-mail,
    .item-addwishlist,
    .item-addCart {
        width: 28px !important;
        height: 28px !important;
        line-height: 28px !important;
        display: inline-block !important;
        margin: 0 2px !important;
        transform: none !important;
        background-color: rgba(255, 255, 255, 0.9) !important;
    }

    .item-quick-look:before,
    .item-mail:before,
    .item-addwishlist:before,
    .item-addCart:before {
        font-size: 14px !important;
    }

    /* Less intrusive hover overlay on mobile */
    .item-img-wrapper-link:before {
        opacity: 0 !important;
        height: 40px !important;
        top: auto !important;
        bottom: 0 !important;
    }
}

/* Enforce Uniform Product Box Sizes */
.item {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: #fff;
    border: 1px solid #f1f1f1;
    margin: 0px !important;
}

.image-container {
    flex-shrink: 0;
    aspect-ratio: 4/5; /* More compact aspect ratio for images */
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-content {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 8px !important; /* Reduced padding */
}

.item-title {
    height: 34px !important; /* Fixed height for approx 2 lines of text */
    line-height: 1.2 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 2px !important;
}

.what-product-is {
    flex-grow: 1 !important;
    border-bottom: none !important;
    margin-bottom: 2px !important;
}

.item .bread-crumb {
    margin-bottom: 2px !important;
}

.price-template {
    margin-top: auto !important;
}

/* Specific Optimizations for Desktop (6-column row) */
@media (min-width: 992px) {
    .image-container {
        aspect-ratio: 1/1 !important; /* Square images for a shorter box */
    }

    .item-content {
        padding: 6px !important;
    }

    .item-title {
        height: 32px !important;
        margin-bottom: 0px !important;
        font-size: 12px !important;
    }

    .item .bread-crumb {
        display: block !important;
        font-size: 10px !important;
        margin-bottom: 2px !important;
    }

    .item-stars {
        font-size: 11px !important; /* Slightly smaller to save space but keep visible */
        margin-bottom: 2px !important;
    }
}

.brand-logo-text .logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    height: 60px;
    width: auto;
}

.logo-text {
    text-align: left;
    line-height: 1.1;
}

.logo-title {
    font-size: 1.4rem;
    font-weight: 800;
}

.logo-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .logo-title {
        font-size: 1rem;
    }
    .logo-subtitle {
        font-size: 9px !important;
    }
    .logo-icon {
        height: 36px;
    }
    .header-actions li i {
        font-size: 18px;
    }
}

.logo-title {
    font-size: 22px;
    font-weight: 700;
    color: #a27556; /* Top text color */
    font-family: "Noto Serif Devanagari", "Mangal", serif;
}

.logo-subtitle {
    font-size: 14px;
    color: #000; /* Bottom text black */
    font-weight: bold;
    letter-spacing: 0.4px;
    font-family: "Noto Serif Devanagari", "Mangal", serif;
}
@media (max-width: 768px) {
    .logo-icon {
        height: 40px;
    }

    .logo-title {
        font-size: 14px;
    }

    /* ================= PRODUCT DETAIL PAGE STYLES ================= */
    .p-detail-main-img-container {
        background: #fff;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        border: 1px solid #f0f0f0;
        margin-bottom: 20px;
        transition: transform 0.3s ease;
        width: 100%;
        box-sizing: border-box;
    }

    .p-detail-main-img-container img {
        max-width: 100% !important;
        height: auto !important;
        max-height: 300px !important;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }

    .easyzoom {
        display: block !important; /* Force block to respect container width */
    }

    .p-detail-main-img-container:hover {
        transform: translateY(-5px);
    }

    .p-detail-name {
        font-size: 28px !important;
        font-weight: 800 !important;
        line-height: 1.2;
        margin-bottom: 12px;
        color: #402a1f;
    }

    /* Global Breadcrumb Styles (Sync with Listing Page) */
    .bread-crumb {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        padding: 10px 0;
        background: transparent;
        list-style: none;
        margin: 0;
    }

    .bread-crumb li {
        font-size: 14px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.8) !important;
        display: flex;
        align-items: center;
    }

    .bread-crumb li a {
        color: #000 !important;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .bread-crumb li a:hover {
        color: #ff4500 !important;
    }

    .bread-crumb li i {
        margin-right: 8px;
        font-size: 16px;
    }

    .bread-crumb li.has-separator:after {
        content: "\f105";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        margin: 0 15px;
        color: rgba(255, 255, 255, 0.5);
        font-size: 14px;
    }

    .bread-crumb li.is-marked a {
        color: #ff4500 !important;
        font-weight: 700;
    }

    .page-intro h2 {
        color: #ffffff !important;
        font-size: 42px;
        font-weight: 800 !important;
        letter-spacing: 1px;
        text-transform: uppercase !important;
        margin-bottom: 5px !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    /* Ensure breadcrumb on detail page matches listing page EXACTLY */
    .page-detail .page-style-a,
    .page-style-a {
        background:
            linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
            url("../images/pattern/pattern-a.png") repeat !important;
        padding: 60px 0 !important;
    }

    .page-detail .page-intro h2 {
        font-size: 42px !important;
        font-weight: 800 !important;
    }

    /* Listing Page Mobile Filtering */
    @media (max-width: 991px) {
        .products-sidebar {
            display: none;
            width: 100%;
            margin-bottom: 30px;
        }

        .products-sidebar.active {
            display: block;
            padding-right: 0 !important;
        }

        .page-shop {
            padding-top: 30px !important;
        }

        .page-intro h2 {
            font-size: 20px !important;
            margin-bottom: 2px !important;
        }

        .bread-crumb {
            padding: 5px 0;
        }

        .bread-crumb li {
            font-size: 10.5px;
        }

        .bread-crumb li i {
            font-size: 12px !important;
            margin-right: 4px !important;
        }

        .bread-crumb li.has-separator:after {
            margin: 0 6px;
            font-size: 10px;
        }

        .page-detail .page-style-a,
        .page-style-a {
            padding: 20px 0 !important;
        }
    }

    /* Product Detail Page Enhancements */
    .p-detail-main-img-container {
        border: 1px solid #eee;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    .p-detail-main-img-container:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .p-detail-main-img-container img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .thumbnails {
        display: flex;
        gap: 10px;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .thumbnails a {
        border: 2px solid #eee;
        border-radius: 8px;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .thumbnails a:hover,
    .thumbnails a.active {
        border-color: #ff4500;
    }

    .thumbnails img {
        display: block;
    }

    .p-detail-name {
        font-size: 32px !important;
        font-weight: 800 !important;
        color: #333;
        line-height: 1.2;
        margin-bottom: 5px;
    }

    .p-detail-rating {
        margin-bottom: 20px;
    }

    .p-detail-price {
        font-size: 36px !important;
        font-weight: 900 !important;
        color: #ff4500 !important;
    }

    .p-detail-old-price {
        font-size: 18px !important;
        color: #999;
        text-decoration: line-through;
    }

    .p-detail-old-label {
        font-size: 14px;
        color: #777;
        margin-right: 5px;
    }

    .p-detail-description {
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        margin: 30px 0;
        padding: 25px 0;
    }

    .p-detail-description p {
        color: #555;
        line-height: 1.7;
        font-size: 15px;
        text-align: justify;
    }

    .p-detail-info-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        background: #fdfdfd;
        padding: 20px;
        border-radius: 10px;
        border: 1px solid #f0f0f0;
    }

    .info-item {
        display: flex;
        flex-direction: column;
    }

    .info-label {
        font-size: 12px;
        color: #888;
        text-transform: uppercase;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .info-value {
        font-size: 15px;
        color: #333;
        font-weight: 700;
    }

    .p-detail-actions-wrapper {
        margin-top: 30px;
        width: 100%;
    }

    .post-form {
        width: 100%;
    }

    .variant-label,
    .quantity-label {
        font-weight: 700;
        color: #333;
        margin-bottom: 10px;
        display: block;
    }

    .variant-select {
        width: 100%;
        max-width: 300px;
        padding: 12px;
        border-radius: 8px !important;
        border: 1px solid #ddd !important;
    }

    .p-detail-quantity-and-cart {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 30px;
        width: 100%;
    }

    .quantity-text-field {
        width: 70px;
        height: 48px;
        text-align: center;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-weight: 700;
    }

    .action-buttons {
        display: flex;
        gap: 10px;
        width: 100%;
        margin-top: 20px;
    }

    .cart-btn {
        flex: 1; /* Take all available space */
        height: 48px;
        font-size: 16px !important;
        font-weight: 800 !important;
        text-transform: uppercase;
        border-radius: 8px !important;
        background: #ff4500 !important;
        border: none !important;
        box-shadow: 0 4px 12px rgba(255, 69, 0, 0.2);
    }

    .wishlist-btn {
        width: 48px;
        height: 48px;
        border-radius: 8px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px !important;
    }

    /* Tabs Enhancements */
    .p-detail-tabs-section {
        margin-top: 50px;
    }

    .p-detail-tabs-nav {
        border-bottom: 1px solid #eee;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .p-detail-tabs-nav::-webkit-scrollbar {
        height: 0px; 
    }

    .p-detail-tabs-nav .nav-link {
        font-weight: 700;
        color: #777 !important;
        border: none !important;
        position: relative;
        white-space: nowrap;
        padding: 12px 16px !important;
    }

    .p-detail-tabs-nav .nav-link.active {
        color: #ff4500 !important;
        background: transparent !important;
    }

    .p-detail-tabs-nav .nav-link.active:after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: #ff4500;
    }

    .p-detail-tab-content {
        padding: 30px;
        background: #fff;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    }

    .p-detail-spec-table {
        width: 100%;
    }

    .p-detail-spec-table tr td {
        padding: 15px !important;
        border-top: 1px solid #f5f5f5;
    }

    .p-detail-spec-table tr:first-child td {
        border-top: none;
    }

    .p-detail-spec-table td:first-child {
        font-weight: 700;
        color: #555;
        width: 30%;
        background: #fafafa;
    }

    @media (max-width: 767px) {
        .p-detail-name {
            font-size: 24px !important;
        }

        .p-detail-quantity-and-cart {
            gap: 0;
        }

        .action-buttons {
            width: 100%;
            gap: 8px;
            margin-top: 15px;
        }

        .cart-btn {
            font-size: 15px !important;
            padding: 0;
        }

        .p-detail-info-grid {
            grid-template-columns: 1fr 1fr;
        }
    }
    /* Global Product Item Spacing */
    .product-item {
        padding: 15px;
    }

    /* Shared Product Item Styles (Listing & Detail Sliders) */
    .product-item {
        padding: 15px;
    }

    .product-item .item {
        border: 1px solid #eee;
        border-radius: 12px;
        overflow: hidden;
        transition: all 0.3s ease;
        background: #fff !important;
        height: 100%;
        display: flex;
        flex-direction: column;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
        position: relative;
        margin-bottom: 20px;
    }

    .product-item .item:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        transform: translateY(-5px);
        border-color: #ff450033;
    }

    .product-item .image-container {
        position: relative;
        background: #f9f9f9;
        aspect-ratio: 1/1.2;
        overflow: hidden;
        width: 100%;
    }

    .product-item .image-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 10px;
        transition: transform 0.5s ease;
    }

    .product-item .item:hover img {
        transform: scale(1.05);
    }

    .product-item .item-content {
        padding: 15px !important;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: #fff;
    }

    .product-item .item-title {
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
        height: 40px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .product-item .item-title a {
        color: #333 !important;
        text-decoration: none;
    }

    .product-item .item-author {
        font-size: 13px;
        color: #777;
        margin-bottom: 10px;
        font-style: italic;
        display: block;
    }

    .product-item .price-template {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: auto;
    }

    .product-item .item-new-price {
        font-size: 18px;
        font-weight: 800;
        color: #ff4500;
    }

    .product-item .item-old-price {
        font-size: 14px;
        color: #999;
        text-decoration: line-through;
    }

    .product-item .tag.new {
        position: absolute;
        top: 10px;
        left: 10px;
        background: #28a745;
        color: #fff;
        padding: 4px 10px;
        font-size: 10px;
        font-weight: 700;
        border-radius: 4px;
        z-index: 10;
    }
    /* Mobile specific grid adjustments */
    @media (max-width: 575px) {
        .product-item {
            padding: 6px;
        }

        .product-item .item-content {
            padding: 10px !important;
        }

        .product-item .item-title {
            font-size: 13px !important;
            height: 34px !important;
        }

        .product-item .item-new-price {
            font-size: 16px;
        }
    }

    .btn-filter-toggle i {
        font-size: 14px;
    }
}

/* Homepage Spacing Optimizations */
.section-maker {
    margin-top: 10px !important;
}

.sec-maker-header {
    margin-bottom: 15px !important;
}

.section-maker .button-outline-secondary {
    margin-top: 10px !important;
}

/* --- Attractive Category Cards & Book Items --- */
.category-card,
.item {
    transition: all 0.3s ease;
    margin-bottom: 20px;
    text-align: center;
}

/* Base style for Book Listing Image Container */
.item .image-container {
    aspect-ratio: 2 / 3 !important;
    position: relative;
    overflow: visible !important;
    background: #fdf8ee;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 12px;
    /* Book spine effect */
    /* border-left: 5px solid rgba(0, 0, 0, 0.15); */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 2px 8px 8px 2px;
}

.item .image-container .item-img-wrapper-link {
    display: block;
    width: 100%;
    height: 100%;
}

.item .image-container img {
    width: 100%;
    height: 100%;
    object-fit: fill !important;
    border-radius: 2px 8px 8px 2px;
    transition: transform 0.5s ease;
}


/* Hover effect for books - physical rotation */
.item:hover .image-container {
    transform: perspective(1000px) rotateY(-8deg) translateY(-8px);
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.15);
}

.category-card .image-container {
    overflow: hidden;
    background: #fdf8ee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(147, 87, 59, 0.1);
}

/* Writer Specific: Circular Profile Style */
.writer-card .image-container {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
      border: 3px solid #93573b;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.writer-card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.writer-card:hover .image-container {
    box-shadow: 0 8px 20px rgba(147, 87, 59, 0.15);
    transform: translateY(-5px);
}

/* Publisher Specific: Rounded Modern Card */
.publisher-card .image-container {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.publisher-card:hover .image-container {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card .item-title {
    font-size: 14px !important;
    font-weight: 600;
    margin-top: 8px;
    color: #93573b;
    display: block;
    height: auto !important;
}

.category-card .item-title a {
    color: inherit;
    text-decoration: none;
}

.category-card .item-title a:hover {
    color: #ff4500;
}

/* --- E-Pustakalaye Premium Cards --- */
.ebook-card-premium {
    padding: 20px;
    border: 1px solid #f6dfc0;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.ebook-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(147, 87, 59, 0.1);
    border-color: #dd634e;
}

.ebook-icon-wrapper {
    background: #fdf8ee;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dd634e;
    aspect-ratio: 1 / 1.2;
    overflow: hidden;
}

.ebook-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.ebook-icon-wrapper i {
    opacity: 0.6;
}

.ebook-card-premium h6 {
    color: #402a1f;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modal-content-ebook {
    background: #fdf8ee;
    border-radius: 16px;
}

.ebook-pdf-viewport {
    background: #e9ecef;
    padding: 20px;
    min-height: 500px;
    border-radius: 8px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}
/* --- PREMIUM CHECKOUT EXPERIENCE --- */
.page-checkout {
    background: linear-gradient(135deg, #fdf8ee 0%, #f9f1e4 100%);
    min-height: 80vh;
}

.checkout-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(221, 99, 78, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(147, 87, 59, 0.05);
    margin-bottom: 30px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.checkout-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(147, 87, 59, 0.1);
}

.section-h4-premium {
    font-size: 1.4rem;
    font-weight: 800;
    color: #dd634e;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-h4-premium i {
    font-size: 1.6rem;
    color: #93573b;
}

.checkout-form-group {
    margin-bottom: 20px;
}

.checkout-form-group label {
    font-weight: 700;
    color: #402a1f;
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
}

.checkout-form-group .text-field {
    border-radius: 12px !important;
    border: 1px solid rgba(147, 87, 59, 0.2) !important;
    padding: 12px 18px !important;
    transition: all 0.3s ease !important;
    background: rgba(255, 255, 255, 0.9) !important;
}

.checkout-form-group .text-field:focus {
    border-color: #dd634e !important;
    box-shadow: 0 0 0 4px rgba(221, 99, 78, 0.1) !important;
    background: #fff !important;
}

.order-summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(147, 87, 59, 0.05);
}

.order-summary-item:last-child {
    border-bottom: none;
}

.order-summary-img {
    width: 60px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.order-summary-info h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #402a1f !important;
}

.order-summary-info p {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: #93573b;
}

.order-total-block {
    margin-top: 25px;
    padding: 20px;
    background: rgba(147, 87, 59, 0.03);
    border-radius: 15px;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-total-row.grand-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed rgba(147, 87, 59, 0.2);
}

.order-total-row span {
    color: #93573b;
    font-weight: 600;
}

.order-total-row strong {
    color: #dd634e;
    font-size: 1.4rem;
    font-weight: 800;
}

#placeOrder {
    display: block;
    width: 100%;
    padding: 16px !important;
    background: #dd634e !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 8px 25px rgba(221, 99, 78, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    margin-top: 25px;
}

#placeOrder:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(221, 99, 78, 0.4) !important;
    background: #c54a36 !important;
}

.payment-method-box {
    padding: 15px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(221, 99, 78, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method-box:hover {
    background: #fdf8ee;
}

.payment-method-box .radio-box {
    margin: 0;
}
/* --- END PREMIUM CHECKOUT --- */
/* Premium View More Button in Mega Menu */
.view-more-link {
    display: inline-flex !important;
    align-items: center;
    color: #dd634e !important; /* Premium Orange */
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    margin-top: 8px;
    padding: 4px 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
}

.view-more-link i {
    font-size: 0.8rem !important;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.view-more-link:hover {
    color: #93573b !important; /* Brownish hover color */
    text-decoration: none !important;
    border-bottom: none !important;
}

.view-more-link:hover i {
    transform: translateX(4px);
}

/* ================= SINGLE PRODUCT PAGE BOOK EFFECT ================= */
.p-detail-main-img-container {
    aspect-ratio: 2 / 3 !important;
    max-width: 350px; /* Force to be smaller */
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: visible !important;
    background: #fdf8ee;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Book spine effect */
    border-left: 5px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1) !important;
    border-radius: 2px 8px 8px 2px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-detail-main-img-container .easyzoom {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.p-detail-main-img-container .easyzoom a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.p-detail-main-img-container img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: fill !important;
    border-radius: 2px 8px 8px 2px !important;
    display: block;
    margin: 0;
}

.p-detail-main-img-container:hover {
    transform: perspective(1000px) rotateY(-8deg) translateY(-8px) !important;
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Search Suggestions Dropdown */
.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    max-height: 400px;
    overflow-y: auto;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none !important;
    border-bottom: 1px solid #f9f9f9;
    transition: all 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover, .suggestion-item.selected {
    background-color: #fdf8ee;
}

.suggestion-item .suggestion-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #402a1f;
}

.suggestion-no-results {
    padding: 15px;
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: #93573b;
}

.order-total-block {
    margin-top: 25px;
    padding: 20px;
    background: rgba(147, 87, 59, 0.03);
    border-radius: 15px;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-total-row.grand-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed rgba(147, 87, 59, 0.2);
}

.order-total-row span {
    color: #93573b;
    font-weight: 600;
}

.order-total-row strong {
    color: #dd634e;
    font-size: 1.4rem;
    font-weight: 800;
}

#placeOrder {
    display: block;
    width: 100%;
    padding: 16px !important;
    background: #dd634e !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 8px 25px rgba(221, 99, 78, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    margin-top: 25px;
}

#placeOrder:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(221, 99, 78, 0.4) !important;
    background: #c54a36 !important;
}

.payment-method-box {
    padding: 15px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(221, 99, 78, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method-box:hover {
    background: #fdf8ee;
}

.payment-method-box .radio-box {
    margin: 0;
}
/* --- END PREMIUM CHECKOUT --- */
/* Premium View More Button in Mega Menu */
.view-more-link {
    display: inline-flex !important;
    align-items: center;
    color: #dd634e !important; /* Premium Orange */
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    margin-top: 8px;
    padding: 4px 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
}

.view-more-link i {
    font-size: 0.8rem !important;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.view-more-link:hover {
    color: #93573b !important; /* Brownish hover color */
    text-decoration: none !important;
    border-bottom: none !important;
}

.view-more-link:hover i {
    transform: translateX(4px);
}

/* ================= SINGLE PRODUCT PAGE BOOK EFFECT ================= */
.p-detail-main-img-container {
    aspect-ratio: 2 / 3 !important;
    max-width: 350px; /* Force to be smaller */
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: visible !important;
    background: #fdf8ee;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Book spine effect */
    border-left: 5px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1) !important;
    border-radius: 2px 8px 8px 2px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-detail-main-img-container .easyzoom {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.p-detail-main-img-container .easyzoom a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.p-detail-main-img-container img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: fill !important;
    border-radius: 2px 8px 8px 2px !important;
    display: block;
    margin: 0;
}

.p-detail-main-img-container:hover {
    transform: perspective(1000px) rotateY(-8deg) translateY(-8px) !important;
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Search Suggestions Dropdown */
.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    max-height: 400px;
    overflow-y: auto;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none !important;
    border-bottom: 1px solid #f9f9f9;
    transition: all 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover, .suggestion-item.selected {
    background-color: #fdf8ee;
}

.suggestion-item .suggestion-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #402a1f;
}

.suggestion-no-results {
    padding: 15px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* --- PREMIUM SOCIAL SHARING STYLES --- */
.share-article {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    padding: 15px 20px;
    border-radius: 15px;
    border: 1px solid rgba(246, 223, 192, 0.5);
    display: inline-block;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.social-links li a {
    width: 42px;
    height: 42px;
    border-radius: 12px; /* Squircle style */
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93573b;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f6dfc0;
    font-size: 1.2rem;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

/* Brand Colors on Hover */
.social-links li a[title*="Facebook"]:hover { background: #1877F2; color: #fff !important; border-color: #1877F2; box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3); }
.social-links li a[title*="X"]:hover { background: #000; color: #fff !important; border-color: #000; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
.social-links li a[title*="LinkedIn"]:hover { background: #0A66C2; color: #fff !important; border-color: #0A66C2; box-shadow: 0 8px 20px rgba(10, 102, 194, 0.3); }
.social-links li a[title*="WhatsApp"]:hover { background: #25D366; color: #fff !important; border-color: #25D366; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); }
.social-links li a[title*="Copy"]:hover { background: #dd634e; color: #fff !important; border-color: #dd634e; box-shadow: 0 8px 20px rgba(221, 99, 78, 0.3); }

.social-links li a:hover {
    transform: translateY(-5px) rotate(5deg);
}

.share-article h6 {
    font-size: 0.85rem;
    font-weight: 800;
    color: #93573b;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* PREMIUM E-BOOK & E-PATRIKA STYLES */
.ebook-card-premium {
    border: none !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    padding: 2rem 1.5rem !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(147, 87, 59, 0.05) !important;
}

.ebook-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(147, 87, 59, 0.12) !important;
    border-color: rgba(147, 87, 59, 0.2) !important;
}

.ebook-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #fdf8ee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ebook-card-premium:hover .ebook-icon-wrapper {
    background: #dd634e;
    transform: scale(1.1) rotate(5deg);
}

.ebook-icon-wrapper i {
    font-size: 2.2rem;
    color: #dd634e;
}

.ebook-card-premium:hover .ebook-icon-wrapper i {
    color: #fff;
}

.btn-premium-read {
    background: #93573b !important;
    color: #fff !important;
    border-radius: 30px !important;
    padding: 0.6rem 1.5rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    border: none !important;
    box-shadow: 0 4px 15px rgba(147, 87, 59, 0.2) !important;
    transition: all 0.3s ease !important;
}

.btn-premium-read:hover {
    background: #dd634e !important;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(221, 99, 78, 0.3) !important;
}

/* PREMIUM READER MODAL */
.modal-content-ebook {
    background: #f9f7f2 !important;
    border-radius: 25px !important;
    min-height: 85vh;
}

.ebook-reader-header {
    background: #fff;
    padding: 1.2rem 2rem;
    border-bottom: 2px solid #f0e6dc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 25px 25px 0 0;
}

.ebook-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #93573b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.control-btn:hover {
    background: #93573b;
    color: #fff;
    border-color: #93573b;
}

.ebook-pdf-viewport {
    background: #525659;
    padding: 2rem;
    height: 70vh;
    border-radius: 0 0 25px 25px;
    overflow-y: auto !important;
}

.reader-page-canvas {
    max-width: 100%;
    height: auto;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border-radius: 5px;
    display: inline-block;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .ebook-pdf-viewport {
        padding: 0.5rem;
        height: 60vh;
    }
    
    .ebook-reader-header {
        padding: 1rem;
        flex-direction: column;
        gap: 15px;
    }
    
    .ebook-controls {
        width: 100%;
        justify-content: center;
    }
}

/* --- PRODUCT DISCOUNT BADGE STYLES --- */
.price-template {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: nowrap !important;
     justify-content: space-around !important;
      margin-top: 5px;
}
@media (max-width: 768px) {
    .item-new-price {
    font-size: .9rem !important;
}
.item-old-price {
    font-size: 0.7rem !important;
}

.discount-text {
 
    font-size: 0.7rem !important;
}
}
.item-new-price {
    display: inline-block !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #0b3954 !important;
    margin: 0 !important;
}

.item-old-price {
    display: inline-block !important;
    font-size: 0.85rem !important;
    color: #999 !important;
    text-decoration: line-through;
    margin: 0 !important;
}

.discount-text {
    color: #2e8b57 !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    margin-left: auto;
}

.out-of-stock-price {
    color: #ff416c !important; /* Premium red */
}

.discount-badge {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: #fff !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 65, 108, 0.3);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    white-space: nowrap;
}

.detail-discount-label {
    background: #fff5f5;
    color: #ff416c;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    margin-left: 10px;
    border: 1px solid #ffe3e3;
    display: inline-block;
    vertical-align: middle;
}

/* Responsive Pagination for Writer Corner */
.writer-pagination .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
}

.writer-pagination .page-link {
    color: #402a1f;
    border: 1px solid #f6dfc0;
    transition: all 0.2s ease-in-out;
    margin: 0;
    border-radius: 8px !important;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    background: #fff;
}

.writer-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #dd634e 0%, #c54a36 100%) !important;
    border-color: #dd634e !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(221, 99, 78, 0.25);
}

.writer-pagination .page-item.disabled .page-link {
    background: #fdf8ee;
    color: #ccc;
    border-color: #eee;
}

.writer-pagination .page-link:hover:not(.active) {
    background-color: #fdf8ee;
    color: #dd634e;
    border-color: #dd634e;
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .writer-pagination .page-link {
        padding: 5px 8px;
        font-size: 0.8rem;
        min-width: 32px;
    }
    
    .writer-pagination {
        margin-top: 2rem !important;
        margin-bottom: 3rem !important;
    }
}


/* --- QUICK LINKS GRID --- */
.quick-links-section {
    padding: 30px 0;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
}

.quick-link-box {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #f6dfc0;
}

.quick-link-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(221, 99, 78, 0.15);
    border-color: #dd634e;
}

.quick-link-icon {
    width: 50px;
    height: 50px;
    background: #fdf8ee;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: #dd634e;
    font-size: 20px;
    transition: all 0.3s ease;
}

.quick-link-box:hover .quick-link-icon {
    background: #dd634e;
    color: #fff;
}

.quick-link-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #402a1f;
    line-height: 1.2;
}

@media (max-width: 991px) {
    .quick-links-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 575px) {
    .quick-links-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .quick-link-box {
        padding: 8px 4px;
    }
    .quick-link-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin-bottom: 5px;
    }
    .quick-link-text {
        font-size: 0.7rem;
    }
}
