/* storage/css/style.css */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Tahoma', sans-serif;
    background-color: #d6f7fc;
    direction: rtl;
    min-height: 100vh;
}

.mobile-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: #d6f7fc;
    min-height: 100vh;
    position: relative;
    padding-bottom: 80px;
}

/* Header Section */
.header {
    position: relative;
    height: 108px;
    padding: 30px 20px;
}

.logo {
    position: absolute;
    top: 30px;
    right: 20px;
    width: 60px;
    height: 48px;
    z-index: 10;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.search-container {
    position: absolute;
    top: 30px;
    right: 92px;
    left: 80px;
    height: 48px;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.25));
    z-index: 9999;
}

.search-box {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 24px;
    padding: 0 20px;
    font-size: 14px;
    outline: none;
    background-color: #fff;
    background-image: url('../img/search.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cart-icon {
    position: absolute;
    top: 33px;
    left: 18px;
    width: 48px;
    height: 48px;
    background-color: #bfd8ec;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cart-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.cart-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Hero Section */
.hero-section {
    position: relative;
    margin-top: 0px;
    padding: 0 20px;
    height: 200px;
}

.sailor {
    position: absolute;
    left: 20px;
    bottom: 0;
    width: 100px;
    z-index: 2;
}

.sailor img {
    width: 100%;
    height: auto;
    display: block;
}

.info-box {
    position: absolute;
    right: 20px;
    left: 132px;
    bottom: 0;
    height: 196px;
    background-color: #4484a0;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
}

.user-name {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    line-height: 1.4;
}

.user-days {
    font-size: 14px;
    font-weight: 600;
    color: #d6f7fc;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 5px 14px;
    text-align: center;
}

.login-prompt {
    display: inline-block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    padding: 10px 20px;
    text-align: center;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.login-prompt:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.login-prompt:active {
    transform: scale(0.97);
}

/* storage/css/style.css */



.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(68, 132, 160, 0.3);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: #4484a0;
    transform: scale(1.3);
}


.action-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 20px 20px 0 20px;
    padding: 0;
}

.btn {
    flex: 1;
    aspect-ratio: 1;
    background-color: #ffdf7c;
    color: #1a1a1a;
    border: none;
    border-radius: 20px;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    background-color: #f5d060;
}

.btn:active {
    transform: scale(0.96);
}

.blog-section {
    margin: 20px 20px 0 20px;
}

.blog-section a {
    display: block;
    width: 100%;
}

.blog-section img {
    width: 100%;
    height: auto;
    display: block;
}

.bottom-cards {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin: 5px 0 0 0;
    height: 110px;
    padding: 0;
}

.help-card,
.whoisbolinus {
    flex: 1;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.help-card {
    justify-content: center;
}

.whoisbolinus {
    justify-content: flex-start;
    padding-left: -5px;
}

.help-card img,
.whoisbolinus img {
    max-width: 100%;
    max-height: 110px;
    width: auto;
    height: auto;
    border-radius: 15px;
    display: block;
}

/* Social Media Section */
/* .social-section {
    display: flex;
    gap: 10px;
    margin: -15px 20px 20px 20px;
} */

.social-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-card:active {
    transform: scale(0.96);
}

.social-telegram {
    background: linear-gradient(135deg, #2aabee, #1a8fc7);
}

.social-youtube {
    background: linear-gradient(135deg, #ff4444, #cc0000);
}

.social-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.social-label {
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: #a7a7a7;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 0 4px 4px;
    box-shadow: 0 -4px 15px rgba(0,0,0,.1);
    z-index: 100;
    height: 80px;
}

.nav-item {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-decoration: none;
}

.nav-icon-small {
    width: 70px;
    height: 70px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .35s ease;
}

.nav-icon-large {
    width: 100px;
    height: 100px;
    position: relative;
    top: -2px;
    border: 11px solid #a7a7a7;
    background: #a7a7a7;
    border-radius: 50%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .35s ease;
}

.nav-icon-small img,
.nav-icon-large img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border: none !important;
    outline: none !important;
    background: transparent;
    flex-shrink: 0;
}

.nav-icon-pension {
    top: -2px;
}

.nav-icon-moshavere {
    top: -2px;
}

.nav-icon-large img {
    width: 85px;
    height: 85px;
} */

.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(8px, 2vw, 15px);
    padding: clamp(10px, 3vw, 15px);
    margin-top: 5px;
}

.grid-button {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.4;
    max-height: 270px;
    min-height: 140px;
    border: none;
    border-radius: clamp(8px, 2vw, 12px);
    overflow: visible;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: none;
    position: relative;
    background: transparent;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.grid-button:active {
    transform: scale(0.95);
}

.grid-button img {
    width: calc(100% - clamp(10px, 3vw, 16px));
    height: calc(100% - clamp(6px, 2vw, 8px));
    object-fit: contain;
    position: absolute;
    top: clamp(-6px, -2vw, -8px);
    left: clamp(6px, 2vw, 8px);
    border-radius: clamp(8px, 2vw, 12px);
}

.grid-button, .grid-button img {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 340px) {
    .grid-button {
        min-height: 130px;
    }
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px;
    padding: 15px;
}

.cat-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: 0.3s;
    height: 90px;
    box-sizing: border-box;
    overflow: hidden;
}

.cat-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    order: 1;
    font-weight: 500;
}

.cat-icon {
    width: 65px !important;
    height: auto !important;
    object-fit: contain;
    order: 2;
}

.cat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

@media (max-width: 480px) {
    .cat-box {
        padding: 12px 10px;
    }
    .cat-text {
        font-size: 15px;
    }
    .cat-icon {
        width: 28px;
        height: 28px;
    }
}

.subcategory-manager {
    margin-top: 25px;
}

.subcat-top {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.subcat-top select {
    flex: 1;
    height: 42px;
    border-radius: 12px;
    border: none;
    padding: 0 12px;
    font-size: 14px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.subcat-add-btn {
    background: #ffdf7c;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 14px;
}

.subcat-form-container {
    background: #ffffff;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

#subcategoryForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#subcategoryForm input {
    height: 40px;
    border-radius: 10px;
    border: none;
    padding: 0 12px;
    font-size: 14px;
    background: #f6f6f6;
}

.subcat-image-row {
    display: flex;
    gap: 10px;
}

.subcat-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subcat-item {
    background: #ffffff;
    padding: 12px 14px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.subcat-name {
    font-size: 15px;
    font-weight: 600;
}

.subcat-actions {
    display: flex;
    gap: 8px;
}

.subcat-actions button {
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
}

.subcat-edit {
    background: #bfd8ec;
}

.subcat-delete {
    background: #ff8c8c;
}

.subcat-empty {
    text-align: center;
    color: #777;
    margin-top: 10px;
}

.course-page {
    padding: 15px;
}

.course-header {
    display: block;
}

.course-info {
    display: block;
}

.course-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2d3d;
}

.course-desc {
    font-size: 14px;
    line-height: 2;
    color: #3d4b57;
}

.course-image {
    width: 120px;
    height: 120px;
    float: left;
    margin: 0 0 10px 12px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.glass-box {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    padding: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-value {
    font-weight: 700;
    color: #2c6d88;
    font-size: 16px;
}

.checklist-box {
    margin-top: 15px;
}

.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.checklist-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2d3d;
}

.select-all-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #425466;
    cursor: pointer;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255,255,255,0.25);
}

.check-item-text {
    font-size: 14px;
    color: #2c3a46;
    line-height: 1.8;
}

.checklist-box input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4484a0;
    cursor: pointer;
    flex-shrink: 0;
}

.accordion-box {
    overflow: hidden;
}

.accordion-toggle {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 28px;
}

.accordion-toggle::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #2c6d88;
    border-bottom: 2px solid #2c6d88;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s ease;
}

.accordion-box.active .accordion-toggle::before {
    transform: translateY(-50%) rotate(-135deg);
}

.accordion-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-arrow {
    font-size: 20px;
    color: #2c6d88;
    transition: transform 0.3s ease;
    line-height: 1;
}

.accordion-box.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.accordion-content.open {
    opacity: 1;
    margin-top: 10px;
}

.progress-container {
    position: relative;
    width: 100%;
    height: 18px;
    margin-top: 18px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8edf2, #d8e4ec);
    box-shadow:
        inset 0 2px 6px rgba(255,255,255,0.7),
        inset 0 -2px 6px rgba(0,0,0,0.08),
        0 8px 18px rgba(49, 108, 138, 0.18);
    border: 1px solid rgba(120, 160, 185, 0.25);
}

.progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #00c6ff 0%, #0072ff 50%, #00d4b8 100%);
    box-shadow:
        0 0 12px rgba(0, 114, 255, 0.25),
        inset 0 1px 2px rgba(255,255,255,0.35);
    transition: width 0.35s ease;
    position: relative;
}

.progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    right: -40px;
    width: 40px;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.45) 50%,
        rgba(255,255,255,0) 100%
    );
    animation: progressShine 2.2s linear infinite;
}

.progress-text {
    display: block;
    margin-top: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #24506a;
    letter-spacing: 0.3px;
}

@keyframes progressShine {
    0% {
        right: -40px;
    }
    100% {
        right: 100%;
    }
}

.course-progress-box {
    margin-top: 16px;
    padding: 16px;
}

.course-progress-title {
    font-size: 14px;
    font-weight: 700;
    color: #2a3c4f;
    margin-bottom: 12px;
}

.selected-price-container {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    align-items: center;
}

.selected-price-box {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.selected-price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
}

.selected-count {
    background: rgba(52, 152, 219, 0.15);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    color: #3498db;
    font-size: 13px;
}

.selected-price-value {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    direction: rtl;
}

.add-to-cart-btn {
    flex: 0 0 auto;
    height: 70px;
    min-width: 150px;
    padding: 0 24px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: Vazir, Tahoma, sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.28);
    transition: all 0.25s ease;
}

.add-to-cart-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(52, 152, 219, 0.35);
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
}

.add-to-cart-btn:active:not(:disabled) {
    transform: translateY(0);
}

.add-to-cart-btn:disabled {
    background: rgba(149, 165, 166, 0.5);
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

@media (max-width: 480px) {
    .selected-price-container {
        flex-direction: column;
        align-items: stretch;
    }

    .add-to-cart-btn {
        width: 100%;
        height: 70px;
    }
}

.add-to-cart-btn.in-cart {
    background: linear-gradient(135deg, #7ee73c 0%, #53c02b 100%) !important;
}

.add-to-cart-btn.in-cart:hover {
    background: linear-gradient(135deg, #7ee73c 0%, #53c02b 100%) !important;
}

@font-face {
    font-family: 'Sarbaz';
    src: url('/storage/fonts/webfonts/Epic-Sarbaz-Black.woff2') format('woff2'),
         url('/storage/fonts/webfonts/Epic-Sarbaz-Black.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: 'Sarbaz', sans-serif !important;
}

body {
    font-family: 'Sarbaz', sans-serif !important;
}

h1, h2, h3, h4, h5, h6, p, a, div, span, button, input, textarea {
    font-family: 'Sarbaz', sans-serif !important;
}

.view-cart-btn {
    flex: 0 0 auto;
    height: 70px;
    min-width: 150px;
    padding: 0 24px;
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Sarbaz', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(39, 174, 96, 0.28);
    transition: all 0.25s ease;
}

.view-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(39, 174, 96, 0.35);
    background: linear-gradient(135deg, #1e8449 0%, #196f3d 100%);
}

.view-cart-btn:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .view-cart-btn {
        width: 100%;
        height: 70px;
    }
}

.cart-buttons-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-buttons-row .add-to-cart-btn,
.cart-buttons-row .view-cart-btn {
    width: 100%;
    height: 56px;
}

.pdf-description {
    font-size: 0.8rem;
    color: #555;
    margin-top: 2px;
}

.social-rubika {
    background: linear-gradient(135deg, #ff7043, #f0623a, #e53d15);
    flex: 0 0 70px;
    padding: 12px 6px;
    box-shadow: 0 6px 20px rgba(240, 98, 58, 0.45);
    border-radius: 20px;
}

.social-icon-rubika {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
}

.social-label-rubika {
    font-size: 11px;
    letter-spacing: 0.2px;
    text-align: center;
}



/* ===== Glass Search Results ===== */

#search-results{
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;

    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.35);

    box-shadow:
        0 8px 30px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.5);

    max-height: 320px;
    overflow-y: auto;

    display: none;
    z-index: 2000;
}

#search-results.active{
    display: block;
}

/* دسته */
.search-category{
    padding: 6px 0;
}

.search-category h4{
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    padding: 8px 16px;
    color: rgba(0,0,0,0.55);
}

/* آیتم */
.search-item{
    display: block;
    padding: 11px 16px;
    font-size: 14px;
    color: #222;
    text-decoration: none;

    border-radius: 10px;
    margin: 2px 6px;

    transition: all .18s ease;
}

.search-item:hover{
    background: rgba(255,255,255,0.55);
    transform: translateX(-2px);
}

/* پیام‌ها */
.search-empty,
.search-error{
    padding: 14px 16px;
    font-size: 13px;
    color: #666;
}

/* ===== SLIDER SECTION ===== */
.slider-section {
    margin: 16px 20px 0 20px;
    width: calc(100% - 40px);
    overflow: hidden;
    position: relative;
    border-radius: 16px;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.slide {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
}

.slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 4px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(68, 132, 160, 0.3);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: #4484a0;
    transform: scale(1.3);
}
