.digibook-row-title {
border-right: 6px solid #7700FF;
padding-right: 14px;
margin-bottom: 30px;
font-family: var(--e-global-typography-text-font-family), IRANYekan;
font-size: 1.1em;
}
.digibook-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin: 0 auto;
box-sizing: border-box;
}
.digibook-grid * {
font-family: 'Vazir';
}
.digibook-item { padding: 0 15px 15px 15px;
background: white;
border-radius: 22px;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
text-align: center;
overflow: hidden;
min-width: 200px;
max-width: 200px;
box-sizing: border-box;
transition: transform 0.2s ease-in-out;
}
.digibook-item:hover {
transform: scale(1.04); 
}
.digibook-thumbnail {
position: relative;
width: 100%;
}
.digibook-thumbnail img {
width: 100%;
display: block;
border-radius: 20px;
margin-bottom: 20px;
}
.digibook-title {
position: absolute;
top: 0px;
left: 50%;
transform: translateX(-50%);
color: white;
font-size: 0.8em;
font-family: var(--e-global-typography-text-font-family), IRANYekan;
width: 76%;
height: 22%;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
overflow: hidden;
text-overflow: ellipsis; }
.digibook-categories {
font-size: 12px;
color: #777;
margin-bottom: 10px;
}
.digibook-btn {
position: relative; display: flex;
align-items: center;
justify-content: center; padding: 10px 15px;
border: none;
border-radius: 100px;
cursor: pointer;
font-size: 0.9em;
font-weight: regular;
width: 100%;
text-align: center;
font-family: var(--e-global-typography-text-font-family), IRANYekan;
color: white;
}
.digibook-btn svg { margin: 0 0 0 5px;
left: 12px; width: 1.3em;
color: white;
}
.watch-btn {
background: #6000ff;
}
.watch-btn svg {
}
.buy-btn {
background: #9130ff;
}
.buy-btn svg {
}
.digibook-btn:hover {
opacity: 0.8;
} .popup-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
z-index: 1050; } .popup {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: white;
padding: 30px;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
width: 500px;
max-width: 90vw;
border-radius: 8px;
z-index: 1051; }
.digibook-popup-submit-btn {
width: 100%;
padding: 10px;
border-radius: 10px;
border: none;
margin: 10px 0;
background: #cd17ff;
color: white;
cursor: pointer;
}
.digibook-popup-submit-btn:hover {
background-color: #ad00dc;
}
#activation-popup hr {
margin-bottom: 15px;
}
p.digibook-form-title {
text-align: center;
font-size: 1.2em;
}
#activation-message {
padding: 15px;
margin-top: 10px;
border-radius: 10px;
border: 1px solid gray;
display: none;
}
#activation-message.success-message {
color: #155724;
background-color: #d4edda;
border-color: #c3e6cb;
display: block;
}
#activation-message.error-message {
color: #721c24;
background-color: #f8d7da;
border-color: #f5c6cb;
display: block;
}
.popup * {
font-family: var(--e-global-typography-text-font-family), IRANYekan;
} .close-btn {
position: absolute;
top: 10px;
right: 15px;
font-size: 20px;
cursor: pointer;
}
.loader-spinner {
width: 40px;
height: 40px;
border: 4px solid rgba(0, 0, 0, 0.2);
border-top: 4px solid #333;
border-radius: 50%;
animation: spin 1s linear infinite;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@media (max-width: 767px) {
.digibook-grid {
grid-template-columns: repeat(2, 1fr);
gap: 25px 10px;
}
.digibook-item {
min-width: unset;
}
.digibook-title {
font-size: 0.7em;
}
.digibook-btn  {
font-size: 0.75em;
padding: 6px 5px;
}
.digibook-btn svg {
width: 1em;
}
}  @media (min-width: 880px) {
.digibook-grid {
grid-template-columns: repeat(4, 1fr);
}
}
@media (min-width: 1090px) {
.digibook-grid {
grid-template-columns: repeat(5, 1fr);
}
}
/* For tablets, use 2 columns
@media (max-width: 900px) {
.grid-container {
grid-template-columns: repeat(2, 1fr);
}
}