/* Kurdish Bookstore Website Styles */

/* Hama Font Import */
@font-face {
    font-family: "Hama";
    src: url("https://shtakanm.vercel.app/hama.ttf");
}

/* Logo Font Import */
@font-face {
    font-family: "LogoFont";
    src: url("logofont.ttf");
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    font-family: Hama, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: Hama, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    direction: rtl;
}

#font {
    font-family: Hama;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Full width container for users tab */
#users-tab .container {
    max-width: none;
    width: 100%;
    padding: 0 10px;
}

#users-tab .admin-content {
    padding: 20px 0;
}

/* Header Styles */
.main-header {
    background: #fff;
    color: white;
    padding: 13px 0;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.logo img {
    height: 50px;
    width: auto;
}

.logo h1 {
    font-family: "LogoFont", Hama, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 45px;
    font-weight: bold;
    color: #1A699C;
    margin: 0;
}

.search-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
    flex-direction: row-reverse;
    border: 2px solid #FFC525;
}

.search-box input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    outline: none;
    font-size: 16px;
    direction: rtl;
    background: transparent;
}

.search-box input::placeholder {
    color: #999;
}

.btn-search {
    background: #FFC525;
    color: #333;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    border-radius: 30px 0 0 30px;
}

.btn-search:hover {
    background: #ffed4e;
    transform: scale(1.05);
}

.book-count {
    background: rgba(255,255,255,0.15);
    padding: 12px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.count-number {
    font-size: 24px;
    font-weight: bold;
    color: #FFC525;
}

.count-text {
    font-size: 16px;
    color: white;
    opacity: 0.9;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 2px solid rgba(255,255,255,0.3);
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 2px;
    color: #1A699C;
}

.user-type {
    font-size: 12px;
    opacity: 0.8;
    color: #FFC525;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-admin, .btn-back, .btn-logout, .btn-feedback {
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-admin {
    background: #FFC525;
    color: #333;
    border-color: #FFC525;
}

.btn-back {
    background: rgba(255,255,255,0.2);
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.btn-logout {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    border-color: #ff6b6b;
    width: 13px;
    height: 26px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    font-family: 'Hama', sans-serif;
}

.btn-logout::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.btn-logout:hover::before {
    left: 100%;
}

.btn-logout .logout-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.btn-logout:hover .logout-icon {
    transform: scale(1.1) rotate(-10deg);
}

.btn-feedback {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.btn-cart {
    background: #17a2b8;
    color: white;
    border-color: #17a2b8;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-cart .cart-count {
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    position: absolute;
    top: -8px;
    right: -8px;
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.mobile-cart-count {
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    position: absolute;
    top: -6px;
    right: -6px;
}

.btn-admin:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255,215,0,0.3);
}

.btn-back:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255,255,255,0.2);
}

.btn-logout:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e53e3e 100%);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 30px rgba(255,107,107,0.6);
    color: white;
}

.btn-logout:active {
    transform: translateY(-1px) scale(0.95);
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
}

/* Logout Button Tooltip */
.btn-logout[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    animation: fadeInTooltip 0.3s ease forwards;
}

.btn-logout[title]:hover::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
}

@keyframes fadeInTooltip {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.btn-feedback:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40,167,69,0.3);
}

.btn-cart:hover {
    background: #138496;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(23,162,184,0.3);
}

/* Main Content calc(100vh - 200px) */
.main-content {
    min-height: calc(100vh - 220px);
    padding: 30px 0;
    transition: opacity 0.3s ease;
    font-family: 'Hama', sans-serif;
}

.page-header {
    text-align: center;
    margin-bottom: 17px;
}

.page-title {
    font-size: 36px;
    color: #1A699C;
    margin-bottom: 10px;
}

.title-underline {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #FFC525, #ffed4e);
    margin: 0 auto;
    border-radius: 2px;
}

/* Categories Grid */
.categories-container {
    max-width: 1200px;
    margin: 0 auto;
}


.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 1px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.category-image {
    height: 140px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #F5F5F5;
    border-bottom: 2px solid #FFC525;
    padding: 18px;
    border-radius: 12px 12px 0 0;
    -webkit-border-radius: 12px 12px 0 0;
    -moz-border-radius: 12px 12px 0 0;
    -ms-border-radius: 12px 12px 0 0;
    -o-border-radius: 12px 12px 0 0;
}

.category-image::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #FFC525, #ffed4e);
    border-radius: 2px;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    border-radius: 8px;
}

.category-icon {
    font-size: 48px;
    display: block;
}

.category-content {
    position: relative;
    background: white;
    padding: 12px;
    border-radius: 0 0 12px 12px;
    flex-grow: 1;
}

.category-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.category-badge {
    background: #FFC525;
    color: white;
    padding: 0px 18px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 8px auto 0 auto;
    width: fit-content;
    min-height: 28px;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
}

.badge-count {
    display: inline-block;
    text-align: center;
    width: 100%;
}

/* Admin Table Image Styles */
.category-image-cell {
    text-align: center;
    padding: 10px;
}

.category-table-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.category-icon-fallback {
    font-size: 24px;
}

/* Books Page Styles */
.books-header {
    margin-bottom: 30px;
}

.books-header .page-title h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 5px;
}

.results-count {
    color: #666;
    font-size: 16px;
}

.books-controls {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filters-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: bold;
    color: #333;
}

.filter-group select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 14px;
    min-width: 150px;
}




/* Books Grid */
.books-container {
    margin-bottom: 40px;
}

.books-grid {
    display: grid;
    gap: 30px;
}

.books-grid.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    justify-items: center;
}

.books-grid.list-view {
    grid-template-columns: 1fr;
}

.book-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    width: 260px;
    height: 460px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.book-image {
    position: relative;
    height: 70%;
    border: 2px solid #969696;
    overflow: hidden;
    margin: 10px;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #999;
}

.book-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
}

.book-author-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 400;
    backdrop-filter: blur(3px);
    max-width: calc(100% - 70px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.book-author-overlay .author-name {
    display: block;
}

.book-actions-overlay {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 12px 16px;
    backdrop-filter: blur(5px);
}

.book-card:hover .book-actions-overlay {
    opacity: 1;
}

.book-actions-overlay .btn-view,
.book-actions-overlay .btn-borrow {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
    min-width: auto;
}

.book-actions-overlay .btn-icon {
    width: 16px;
    height: 16px;
}

.btn-favorite {
    background: grey;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #9b59b6;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-favorite:hover {
    background: #95a5a6;
    color: #8e44ad;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

.btn-favorite[data-favorited="true"] {
    background: #ff6b6b !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    animation: heartbeat 0.6s ease-in-out;
}

.btn-favorite[data-favorited="true"]:hover {
    background: #ff5252 !important;
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.5);
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.book-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-title {
    font-size: 23px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    text-align: center;
}

.book-author {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}

.book-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: -15px;
}

.star-rating {
    display: flex;
    gap: 2px;
    justify-content: center;
}

.star {
    color: #ddd;
    font-size: 18px;
    position: relative;
}

.star.filled {
    color: #FFC525;
}

.star.half-filled {
    color: #ddd;
    position: relative;
}

.star.half-filled::before {
    content: "★";
    position: absolute;
    left: 0;
    color: #FFC525;
    width: 50%;
    overflow: hidden;
}

.rating-text {
    font-size: 14px;
    color: #666;
}

.book-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.book-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-view, .btn-borrow {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.btn-view {
    background: #333;
    color: white;
}

.btn-borrow {
    background: #3FBCF0;
    color: white;
}

.btn-view:hover {
    background: #555;
}

.btn-borrow:hover {
    background: #45b7aa;
}

.book-status {
    text-align: center;
    font-size: 12px;
    font-weight: bold;
}

.status-available {
    color: #4caf50;
}

.status-unavailable {
    color: #f44336;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 15px;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 14px;
}

.page-btn.active {
    background: #FFC525;
    border-color: #FFC525;
    color: #333;
    font-weight: bold;
}

.page-btn:hover {
    background: #f0f0f0;
}

.page-btn.active:hover {
    background: #ffed4e;
}

.page-dots {
    padding: 10px 5px;
    color: #666;
}

/* No Results */
.no-books, .no-categories {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-books-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-books h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

/* Admin Panel Styles */
.admin-page {
    background: #f8f9fa;
}

.admin-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-nav {
    background: white;
    border-bottom: 1px solid #ddd;
    border-top: none;
    padding: 0;
    position: static;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-tabs {
    display: flex;
    gap: 0;
}

.nav-tab {
    padding: 15px 25px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.nav-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f8f9ff;
}

.nav-tab:hover {
    background: #f0f0f0;
    color: #333;
}

.admin-content {
    padding: 30px 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.admin-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 48px;
    opacity: 0.8;
}

.stat-info h3 {
    font-size: 32px;
    color: #333;
    margin-bottom: 5px;
}

.stat-info p {
    color: #666;
    font-size: 16px;
}

/* Forms */
.admin-form {
    max-width: 800px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    direction: rtl;
    text-align: center;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.admin-table tr:hover {
    background: #f8f9ff;
}

.category-icon-cell {
    font-size: 24px;
    text-align: center;
}

.btn-edit, .btn-delete {
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    margin: 0 2px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-edit {
    background: #FFC525;
    color: #333;
}

.btn-delete {
    background: #ff6b6b;
    color: white;
}

.btn-edit:hover, .btn-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    transition: opacity 0.3s;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #FFC525 0%, #a18a05 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 16px;
}

.login-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-btn:hover {
    color: #333;
}

.login-form {
    margin-bottom: 20px;
}

.demo-accounts {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.demo-accounts h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
}

.demo-accounts p {
    color: #666;
    font-size: 13px;
    margin: 5px 0;
}

.current-logo {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.current-logo p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

/* Footer     margin-top: 50px; */
.main-footer {
    background: #000;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 15px;
}

.footer-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

/* Enhanced Mobile-First Responsive Design */

/* Mobile App-like enhancements */
@media (max-width: 1024px) {
    /* Global mobile optimizations */
    * {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Allow touch events on book cards */
    .book-card {
        -webkit-user-select: auto;
        user-select: auto;
        -webkit-touch-callout: default;
        touch-action: manipulation;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    /* Hide main header on mobile/tablet */
    .main-header {
        display: none;
    }
    
    /* Hide main footer on mobile/tablet */
    .main-footer {
        display: none;
    }
    
    /* Mobile Top Search Bar */
    .mobile-search-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #211f2200 100%);
        backdrop-filter: blur(20px);
        z-index: 1000;
        padding: 9px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: top center;
    }
    
    /* Shrunk state when scrolling */
    .mobile-search-bar.shrink {
        transform: scale(0.85);
        padding: 5px;
        opacity: 0.8;
    }
    
    /* Expanded state when touched or at top */
    .mobile-search-bar.expand {
        transform: scale(1);
        padding: 9px;
        opacity: 1;
    }
    
    .mobile-search-container {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .mobile-search-box {
        background: rgba(255,255,255,0.95);
        border-radius: 25px;
        display: flex;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0,0,0,0.15);
        backdrop-filter: blur(10px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border: 2px solid rgba(255, 215, 0, 0.3);
    }
    
    /* Shrunk search box */
    .mobile-search-bar.shrink .mobile-search-box {
        border-radius: 20px;
    }
    
    .mobile-search-box:focus-within {
        background: rgba(255,255,255,1);
        transform: translateY(-1px);
        box-shadow: 0 12px 40px rgba(255, 215, 0, 0.3);
        border-color: #FFC525;
    }
    
    .mobile-search-box input {
        flex: 1;
        padding: 18px 25px;
        border: none;
        outline: none;
        font-size: 16px;
        direction: rtl;
        background: transparent;
        color: #333;
        font-family: 'Hama', sans-serif;
    }
    
    .mobile-search-box input::placeholder {
        color: #999;
        font-weight: 400;
        font-family: 'Hama', sans-serif;
    }
    
    .mobile-search-btn {
        background: linear-gradient(135deg, #FFC525 0%, #ffed4e 100%);
        border: none;
        padding: 18px 25px;
        color: #333;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        border-radius: 0 25px 25px 0;
    }
    
    .mobile-search-btn:hover,
    .mobile-search-btn:active {
        background: linear-gradient(135deg, #ffed4e 0%, #FFC525 100%);
        transform: scale(1.02);
    }
    
    /* Add top padding to main content for search bar */
    .main-content {
        padding-top: 90px;
        padding-bottom: 100px;
    }
    
    .page-header {
        margin-top: 0;
        padding-top: 20px;
    }
    
    /* Remove old header content styling since header is hidden */
    
    /* Categories grid mobile */
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .category-card {
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.18);
        transition: all 0.3s ease;
    }
    
    .category-card:active {
        transform: scale(0.95);
    }
    
    .category-image {
        height: 135px;
        padding: 17px;
        border-radius: 20px 20px 0 0;
    }
    
    .category-img {
        width: 111%;
        height: 83%;
    }
    
    .category-content {
        padding: 15px;
    }
    
    .category-name {
        font-size: 16px;
    }
    
    /* Books mobile optimization */
    .books-controls {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        margin: 15px;
        border-radius: 15px;
    }
    
    .filters-section {
        justify-content: center;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .filter-group select {
        padding: 12px 15px;
        border-radius: 10px;
        font-size: 16px;
        min-width: 140px;
    }
    
    
    
    /* Mobile book grid - 2 columns for better mobile experience */
    .books-grid.grid-view {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
        justify-items: center;
    }
    
    .book-card {
        width: 100%;
        max-width: 180px;
        height: 320px;
        border-radius: 15px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }
    
    .book-card:active {
        transform: scale(0.95);
    }
    
    .book-image {
        height: 75%;
        border-radius: 15px 15px 0 0;
    }
    
    .book-content {
        padding: 12px;
        height: 25%;
    }
    
    .book-title {
        font-size: 14px;
        margin-bottom: 5px;
        line-height: 1.2;
    }
    
    .book-rating {
        margin-bottom: 5px;
    }
    
    .star {
        font-size: 14px;
    }
    
    .book-actions-overlay {
        display: none !important;
    }
    
    .book-author-overlay {
        top: 6px;
        left: 6px;
        padding: 2px 6px;
        font-size: 9px;
        border-radius: 8px;
    }
    
    /* Admin panel mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .stat-card {
        padding: 20px;
        border-radius: 15px;
        flex-direction: row;
        text-align: left;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-tab {
        flex: 0 0 auto;
        min-width: 100px;
        padding: 15px 20px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .admin-section {
        margin: 15px;
        padding: 20px;
        border-radius: 15px;
    }
    
    /* Table mobile optimization */
    .admin-table {
        font-size: 14px;
        border-radius: 15px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 12px 8px;
    }
    
    /* Login mobile */
    .login-container {
        padding: 15px;
    }
    
    .login-box {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    /* Book detail mobile */
    .book-detail-header {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
        margin: 15px;
        border-radius: 20px;
    }

    .book-right-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .book-cover,
    .book-cover-placeholder {
        height: 300px;
        max-width: 200px;
        margin: 0 auto;
        border-radius: 15px;
    }
    
    .book-main-title {
        font-size: 24px;
        text-align: center;
    }
    
    .book-main-meta {
        justify-content: center;
        gap: 10px;
    }
    
    .main-meta-item {
        padding: 8px 15px;
        border-radius: 20px;
    }
    
    .main-meta-value {
        font-size: 16px;
    }
    
    .book-content-navigation {
        margin: 15px;
        padding: 15px;
        border-radius: 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .content-nav-btn {
        width: 100%;
        padding: 15px;
        border-radius: 12px;
        font-size: 16px;
    }
    
    .content-section {
        margin: 15px;
        padding: 20px;
        border-radius: 15px;
    }
    
    /* Mobile-specific book actions */
    .book-actions-section {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-purchase, .btn-favorite {
        padding: 18px 24px;
        border-radius: 12px;
        font-size: 18px;
        font-weight: bold;
    }
    
    /* Mobile pagination */
    .pagination {
        padding: 0 15px;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-btn {
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 16px;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Mobile footer */
    .main-footer {
        padding: 30px 15px;
        font-size: 16px;
    }
    
    /* Modal mobile optimization */
    .modal-content {
        margin: 20px auto;
        width: 95%;
        max-width: none;
        border-radius: 20px;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 20px;
        border-radius: 20px 20px 0 0;
    }
    
    .purchase-form-container {
        padding: 20px;
        max-height: 60vh;
    }
    
    /* Responsive user table */
    #users-tab .admin-table {
        font-size: 12px;
    }
    
    #users-tab .admin-table th,
    #users-tab .admin-table td {
        padding: 8px 5px;
        word-wrap: break-word;
        max-width: 120px;
    }
    
    #users-tab .admin-section {
        width: 100%;
        max-width: none;
    }
    
    #users-tab .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .category-card {
        padding: 10px 15px;
    }
    
    .category-icon {
        font-size: 36px;
    }
    
    .category-name {
        font-size: 18px;
    }
    
    .book-card {
        margin-bottom: 15px;
    }
    
    .book-content {
        padding: 15px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .stat-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        font-size: 36px;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #FFC525 0%, #FFC525 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
}

.modal .admin-form {
    padding: 25px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Current image preview for category modal */
.current-image-preview {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    margin: 10px 0;
}

.current-image-preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.current-image-preview span {
    display: block;
    margin-bottom: 5px;
}

.current-image-preview p {
    margin: 5px 0 0 0;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Purchase Modal Styles */
.purchase-form-container {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.book-info-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    border-left: 4px solid #667eea;
}

.book-info-section h4 {
    color: #333;
    font-size: 18px;
    margin-bottom: 5px;
}

.book-info-section p {
    margin: 5px 0;
    color: #666;
}

.book-price {
    font-weight: bold;
    color: #4caf50;
    font-size: 16px;
}

.purchase-form {
    max-width: 100%;
}

.purchase-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.purchase-form .form-group {
    display: flex;
    flex-direction: column;
}

.purchase-form .form-group label {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.purchase-form .form-group input,
.purchase-form .form-group textarea {
    padding: 10px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    direction: rtl;
}

.purchase-form .form-group input:focus,
.purchase-form .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Order Status Styles */
.status-pending {
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-confirmed {
    background: #d1ecf1;
    color: #0c5460;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-shipped {
    background: #cce5ff;
    color: #004085;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* Mobile responsive for purchase form */
@media (max-width: 768px) {
    .purchase-form .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .purchase-form-container {
        padding: 15px;
        max-height: 60vh;
    }
    
    .modal-content {
        margin: 2% auto;
        width: 95%;
        max-height: 90vh;
    }
}

/* Extra mobile optimizations for purchase modal */
@media (max-width: 480px) {
    .purchase-form-container {
        padding: 10px;
        max-height: 55vh;
    }
    
    .modal-content {
        margin: 1% auto;
        width: 98%;
        max-height: 95vh;
    }
    
    .purchase-form .form-group {
        margin-bottom: 10px;
    }
    
    .purchase-form .form-group input,
    .purchase-form .form-group textarea {
        padding: 8px;
        font-size: 14px;
        text-align: center;
        box-sizing: border-box;
        width: 100%;
        direction: rtl;
    }
}

/* Book Modal Specific Styles */
#bookModal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
    margin: 2% auto;
    width: 95%;
    max-width: 800px;
}

#bookModal .admin-form {
    max-height: calc(90vh - 120px);
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom scrollbar for book modal */
#bookModal .admin-form::-webkit-scrollbar {
    width: 8px;
}

#bookModal .admin-form::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#bookModal .admin-form::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

#bookModal .admin-form::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Ensure modal is centered and scrollable */
#bookModal {
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 0;
}

#bookModal.modal[style*="block"] {
    display: flex !important;
}

/* Book modal form adjustments */
#bookModal .form-group {
    margin-bottom: 15px;
}

#bookModal .form-row {
    margin-bottom: 15px;
}

#bookModal textarea {
    min-height: 80px;
    resize: vertical;
}

/* Mobile responsive adjustments for book modal */
@media (max-width: 768px) {
    #bookModal .modal-content {
        width: 98%;
        margin: 1% auto;
        max-height: 95vh;
    }
    
    #bookModal .admin-form {
        max-height: calc(95vh - 100px);
        padding-right: 5px;
    }
    
    #bookModal .form-row {
        grid-template-columns: 1fr;
    }
}

/* Book Detail Page Styles */
.book-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Book Content Navigation */
.book-content-navigation {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    gap: 1rem;
    flex-wrap: wrap;
}

.content-nav-btn {
    background: #000;
    padding: 12px 24px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: #F9C125;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}



.content-nav-btn.active {
    background: #0D659C;
    color: white;
}


/* Updated Content Sections for Tab Navigation */
.book-content-sections .content-section {
    display: none;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.book-content-sections .content-section.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .book-content-navigation {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .content-nav-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .book-content-sections .content-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .book-content-navigation {
        flex-direction: column;
    }
    
    .content-nav-btn {
        width: 100%;
        text-align: center;
    }
}

.book-detail-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.book-right-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.book-main-image {
    position: relative;
}

.book-cover {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.book-cover-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.book-main-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-category-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    width: fit-content;
}

.book-main-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    line-height: 1.3;
}

.book-main-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px 0;
}

.main-meta-item {
    color: black;
}

.main-meta-value {
    font-size: 34px;
    font-weight: bold;
    text-align: center;
    display: block;
}

.book-author-section {
    margin-bottom: 25px;
}

.author-label {
    color: #666;
    font-weight: 500;
    margin-left: 10px;
}

.author-name {
    font-size: 13px;
    font-weight: bold;
    color: #000000;
}

.book-meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.meta-label {
    color: #666;
    font-weight: 500;
}

.meta-value {
    font-weight: bold;
    color: #333;
    font-size: 18px;
}

.book-rating-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.rating-number {
    font-size: 18px;
    font-weight: bold;
    color: #FFC525;
}

.book-status-section {
    margin-bottom: 25px;
}

.book-actions-section {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
}

.btn-purchase, .btn-favorite {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 27px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-purchase {
    background: #4ecdc4;
    color: white;
}

.btn-favorite {
    background: #ff6b6b;
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-favorite::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-favorite:hover::before {
    left: 100%;
}

.btn-purchase:hover {
    background: #45b7aa;
    transform: translateY(-2px);
}

.btn-favorite:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Content Sections */
.book-content-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #FFC525;
    display: inline-block;
}

.section-content {
    line-height: 1.8;
    color: #555;
    font-size: 16px;
}

.section-content p {
    margin-bottom: 15px;
}

/* Table of Contents */
.table-of-contents {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.toc-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.toc-number {
    background: #000;
    color: #F9C125;
    padding: -1px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    min-width: 36px;
    min-height: 36px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toc-title {
    flex: 1;
    font-weight: 500;
    color: #333;
}

/* Additional Images */
.additional-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.additional-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.additional-image:hover {
    transform: scale(1.05);
}

.additional-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Enhanced Images Gallery */
.images-gallery-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.gallery-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.gallery-count {
    font-size: 16px;
    color: #667eea;
    font-weight: 500;
    background: #f8f9ff;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

.images-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 2rem;
}

.gallery-image-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.4s ease;
    background: white;
}

.gallery-image-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.gallery-image-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-image-item:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    gap: 15px;
}

.gallery-image-item:hover .image-overlay {
    opacity: 1;
}

.image-number {
    background: white;
    color: #667eea;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.zoom-icon {
    font-size: 24px;
    background: rgba(255,255,255,0.2);
    padding: 10px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.gallery-note {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.gallery-note p {
    color: #666;
    font-size: 14px;
    margin: 0;
    font-style: italic;
}

/* No Images Message */
.no-images-message {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px dashed #dee2e6;
    color: #6c757d;
}

.no-images-icon {
    font-size: 64px;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.no-images-message h4 {
    font-size: 20px;
    color: #495057;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.no-images-message p {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* Image Slideshow Styles */
.images-slideshow-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    overflow: hidden;
}

.slideshow-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
}

.slideshow-images {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-item.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slide-item img:hover {
    transform: scale(1.05);
}

.slide-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 215, 0, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.slideshow-btn:hover {
    background: #FFC525;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.slideshow-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    gap: 10px;
    background: white;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #FFC525;
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.indicator:hover {
    background: #ffed4e;
    transform: scale(1.1);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .slideshow-images {
        height: 300px;
    }
    
    .slideshow-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .slide-counter {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .slideshow-images {
        height: 250px;
    }
    
    .slideshow-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .slideshow-indicators {
        padding: 10px;
        gap: 8px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.image-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.image-modal-close:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

/* Responsive Design for Book Detail */
@media (max-width: 768px) {
    .book-detail-header {
        display: flex;
        flex-direction: column;
        gap: 25px;
        padding: 20px;
        align-items: center;
    }
    
    /* Stack elements in correct order: image, info, actions */
    .book-main-image {
        order: 1;
        margin-bottom: 20px;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .book-main-info {
        order: 2;
        margin-bottom: 20px;
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .book-actions-section {
        order: 3;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 400px;
        align-self: center;
    }
    
    .book-cover,
    .book-cover-placeholder {
        height: 300px;
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }
    
    .book-main-title {
        font-size: 24px;
        text-align: center;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .book-meta-info {
        grid-template-columns: 1fr;
    }
    
    .additional-images {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
}

/* Profile Page Styles */
.profile-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.profile-title {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: bold;
}

.profile-form-container {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.profile-form {
    max-width: 100%;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.section-title {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: "📋";
    margin-left: 10px;
    font-size: 1.2em;
}

.profile-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.profile-form .form-group {
    display: flex;
    flex-direction: column;
}

.profile-form .form-group label {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.required {
    color: #e74c3c;
    margin-right: 3px;
}

.profile-form .form-group input,
.profile-form .form-group textarea {
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    direction: rtl;
}

.profile-form .form-group input:focus,
.profile-form .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.profile-form .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.profile-form .form-group small {
    color: #666;
    font-size: 0.85rem;
    margin-top: 3px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

.profile-form .btn-submit {
    background: linear-gradient(135deg, #1a4f1c 0%, #0d9166 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.profile-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.profile-form .btn-cancel {
    background: #6c757d;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.profile-form .btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
    color: white;
}

.profile-info {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.btn-profile {
    background: #0D659C;
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

.btn-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-profile.active {
    background: #764ba2;
    box-shadow: 0 3px 10px rgba(118, 75, 162, 0.3);
}

/* Profile Mobile Responsive */
@media (max-width: 768px) {
    .profile-container {
        margin: 10px;
        padding: 15px;
    }
    
    .profile-form-container {
        padding: 20px;
    }
    
    .profile-form .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .profile-form .btn-submit,
    .profile-form .btn-cancel {
        width: 100%;
        max-width: 250px;
    }
}

/* Mobile Bottom Navigation Bar */
@media (max-width: 1024px) {
    /* Bottom Navigation Bar for Mobile/Tablet */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 25px;
        left: 20px;
        right: 20px;
        background: linear-gradient(135deg, #FFC525 0%, #ffed4e 100%);
        backdrop-filter: blur(20px);
        border-radius: 25px;
        box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
        z-index: 1000;
        border: 1px solid rgba(255, 215, 0, 0.5);
        font-family: 'Hama', sans-serif;
    }
    
    .bottom-nav-container {
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 5px 8px;
        max-width: 100%;
    }
    
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #333;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 10px 12px;
        border-radius: 18px;
        min-width: 50px;
        position: relative;
        background: transparent;
        font-family: 'Hama', sans-serif;
    }
    
    .nav-item.active {
        color: #000;
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    }
    
    .nav-item:active {
        transform: scale(0.95);
    }
    
    .nav-item .nav-icon {
        font-size: 20px;
        margin-bottom: 4px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-item .nav-icon i {
        font-size: 20px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-icon-img {
        width: 20px;
        height: 20px;
        object-fit: contain;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }
    
    .nav-item.active .nav-icon {
        transform: scale(1.1);
        filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.4));
    }
    
    .nav-item.active .nav-icon i {
        transform: scale(1.1);
        color: #000;
    }
    
    .nav-item.active .nav-icon-img {
        transform: scale(1.1);
        filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.4));
    }
    
    .nav-item .nav-label {
        font-size: 10px;
        font-weight: 500;
        opacity: 0.8;
        white-space: nowrap;
        font-family: 'Hama', sans-serif;
    }
    
    .nav-item.active .nav-label {
        opacity: 1;
        font-weight: 600;
        color: #000;
    }
    
    /* Floating animation for active item */
    .nav-item.active::before {
        content: '';
        position: absolute;
        top: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        background: #000;
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    }
    
    /* Add bottom padding to main content to account for floating nav bar */
    .main-content {
        padding-bottom: 120px;
    }
    
    /* Enhanced Mobile Search Box */
    .search-section {
        margin: 10px 15px;
        order: 2;
    }
    
    .search-box {
        background: rgba(255,255,255,0.95);
        border: none;
        box-shadow: 0 8px 32px rgba(0,0,0,0.1);
        backdrop-filter: blur(10px);
        border-radius: 25px;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .search-box:focus-within {
        transform: translateY(-2px);
        box-shadow: 0 12px 40px rgba(0,0,0,0.15);
        background: rgba(255,255,255,1);
    }
    
    .search-box input {
        padding: 18px 25px;
        font-size: 16px;
        background: transparent;
        border: none;
        outline: none;
    }
    
    .search-box input::placeholder {
        color: #999;
        font-weight: 400;
    }
    
    .btn-search {
        background: #FFC525;
        border: none;
        padding: 18px 25px;
        border-radius: 0 25px 25px 0;
        transition: all 0.3s ease;
    }
    
    .btn-search:hover, .btn-search:active {
        background: #eeb61b;
        transform: scale(1.02);
    }
}

/* Hide mobile elements on desktop */
@media (min-width: 1025px) {
    .mobile-bottom-nav {
        display: none;
    }
    
    .mobile-search-bar {
        display: none;
    }
    
    /* Reset main content padding on desktop */
    .main-content {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

/* Feedback Page Styles */
.feedback-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.feedback-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: #0D659C;
    color: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.feedback-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.feedback-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.feedback-form-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.feedback-form .form-group {
    margin-bottom: 25px;
}

.feedback-form .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

.feedback-form .form-group textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Hama', sans-serif;
    resize: vertical;
    transition: all 0.3s ease;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.feedback-form .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.feedback-form .form-group textarea::placeholder {
    color: #999;
    font-style: italic;
}

.feedback-form .form-actions {
    text-align: center;
    margin-top: 30px;
}

.feedback-form .btn-submit {
    background: #0D659C;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Hama', sans-serif;
}

.feedback-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.feedback-success {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
    color: #4caf50;
}

.feedback-success i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #4caf50;
}

.feedback-success h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.feedback-success p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.contact-info {
    margin-top: 40px;
}

.contact-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #FFC525;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-card i {
    font-size: 2rem;
    color: #FFC525;
}

.contact-details h4 {
    margin-bottom: 5px;
    color: #333;
    font-size: 1.1rem;
}

.contact-details p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

.phone-link {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* Mobile responsive for feedback page */
@media (max-width: 768px) {
    .feedback-container {
        padding: 15px;
    }
    
    .feedback-header {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .feedback-title {
        font-size: 1.8rem;
    }
    
    .feedback-subtitle {
        font-size: 1rem;
    }
    
    .feedback-form-container {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    .feedback-form .form-group textarea {
        min-height: 120px;
        padding: 12px;
    }
    
    .feedback-form .btn-submit {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .feedback-success {
        padding: 30px;
    }
    
    .feedback-success i {
        font-size: 3rem;
    }
    
    .feedback-success h3 {
        font-size: 1.5rem;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .contact-card i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .feedback-header {
        padding: 15px;
    }
    
    .feedback-title {
        font-size: 1.5rem;
    }
    
    .feedback-form-container {
        padding: 20px;
    }
    
    .feedback-success {
        padding: 20px;
    }
}

/* Quantity Selector Styles */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.quantity-selector label {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.quantity-btn {
    background: #FFC525;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #ffed4e;
    transform: scale(1.1);
}

.quantity-btn:active {
    transform: scale(0.95);
}

#book-quantity {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background: white;
    outline: none;
}

/* Add to Cart Button */
.btn-add-to-cart {
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1A699C;
    color: white;
    font-family: 'Hama', sans-serif;
}

.btn-add-to-cart:hover {
    background: #138496;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(23,162,184,0.3);
}

.btn-add-to-cart:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Mobile responsive for quantity selector */
@media (max-width: 768px) {
    .quantity-selector {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
        justify-content: center;
    }

    .quantity-controls {
        border-radius: 20px;
    }

    .quantity-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    #book-quantity {
        width: 50px;
        height: 35px;
        font-size: 14px;
    }

    .btn-add-to-cart {
        padding: 12px 18px;
        font-size: 14px;
    }
}

/* Desktop specific styles for layout (769px and above) - CSS GRID APPROACH */
@media (min-width: 769px) {
    
    /* Use CSS Grid for precise positioning */
    .book-actions-section {
        display: grid !important;
        grid-template-columns: auto auto !important;
        grid-template-rows: auto !important;
        grid-column-gap: 15px !important;
        grid-row-gap: 0 !important;
        justify-content: start !important;
        align-items: center !important;
        margin: 20px 0 0 0 !important;
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        position: relative !important;
        left: 0 !important;
    }
    
    /* Force quantity selector to first grid cell (left) */
    .quantity-selector {
        grid-column: 1 !important;
        grid-row: 1 !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
        justify-content: flex-start !important;
        position: relative !important;
        left: 0 !important;
    }
    
    /* Force add to cart button to second grid cell (right of quantity) */
    .btn-add-to-cart {
        grid-column: 2 !important;
        grid-row: 1 !important;
        margin: 0 !important;
        padding: 15px 20px !important;
        width: auto !important;
        min-width: 200px !important;
        max-width: 300px !important;
        text-align: center !important;
        justify-content: center !important;
        position: relative !important;
        left: 0 !important;
        display: flex !important;
    }
    
    /* Override parent container justify-content that might be centering content */
    .book-main-info {
        display: block !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }
    
    /* Force the actions section to start from the very left */
    .book-detail-header .book-main-info {
        position: relative !important;
    }
    
    .book-actions-section {
        position: relative !important;
        left: 0 !important;
        transform: translateX(0) !important;
    }
}

/* Custom Select Dropdown - Mobile Enhancements */
@media (max-width: 768px) {
    .form-input[type="select"],
    .form-input[role="combobox"],
    select.form-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 16px 18px 16px 50px;
        background-position: left 18px center;
        background-size: 14px;
        min-height: 50px;
        touch-action: manipulation;
    }

    /* Better touch targets for mobile */
    .form-input[type="select"]:focus,
    .form-input[role="combobox"]:focus,
    select.form-input:focus {
        transform: scale(1.02);
        transition: transform 0.2s ease;
    }
}

/* Enhanced Select Dropdown for Desktop */
@media (min-width: 769px) {
    .form-input[type="select"],
    .form-input[role="combobox"],
    select.form-input {
        background-position: left 18px center;
        background-size: 16px;
        padding-left: 50px;
        min-height: 48px;
        font-size: 15px;
    }

    .form-input[type="select"]:hover,
    .form-input[role="combobox"]:hover,
    select.form-input:hover {
        border-color: #1A699C;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A699C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    }
}
/* ===================================
   Modern Cart Page Styles
   =================================== */

/* Cart Page Wrapper */
.cart-page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Cart Page Header */
.cart-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #1A699C 0%, #0D659C 100%);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(26, 105, 156, 0.2);
}

.cart-page-title {
    font-size: 32px;
    color: white;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-page-title i {
    font-size: 36px;
    color: #FFC525;
}

.cart-badge {
    background: #FFC525;
    color: #333;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(255, 197, 37, 0.3);
}

/* Alert Messages */
.alert {
    padding: 18px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert i {
    font-size: 24px;
}

.alert-success {
    background: linear-gradient(135deg, #48c774 0%, #3ec46d 100%);
    color: white;
    border-left: 5px solid #2fb35e;
}

.alert-error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    border-left: 5px solid #ff3838;
}

/* Cart Content Grid */
.cart-content-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.cart-items-column {
    width: 100%;
    max-width: 1000px;
}

.order-column {
    width: 100%;
    max-width: 1000px;
}

.order-summary-sticky {
    display: flex;
    justify-content: center;
}

.order-summary-card {
    max-width: 1000px;
}

/* ===================================
   Cart Items Column
   =================================== */

.cart-items-column {
    min-height: 400px;
}

.cart-items-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.cart-items-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1A699C 0%, #FFC525 100%);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f0f0f0;
}

.section-title {
    font-size: 24px;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: #1A699C;
    font-size: 26px;
}

.items-count {
    background: #f8f9fa;
    color: #1A699C;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

/* Cart Items List */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Cart Item Card */
.cart-item-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cart-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #1A699C 0%, #FFC525 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-item-card:hover {
    border-color: #1A699C;
    box-shadow: 0 8px 20px rgba(26, 105, 156, 0.15);
    transform: translateY(-2px);
}

.cart-item-card:hover::before {
    opacity: 1;
}

/* Cart Item Image */
.cart-item-image {
    flex-shrink: 0;
    width: 120px;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-item-card:hover .cart-item-image img {
    transform: scale(1.05);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #6c757d;
    font-size: 48px;
}

/* Cart Item Content */
.cart-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.cart-item-title {
    font-size: 20px;
    color: #333;
    margin: 0;
    font-weight: bold;
    line-height: 1.3;
    flex: 1;
    padding-right: 10px;
}

.cart-item-remove {
    background: #ff6b6b;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: #ff5252;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* Cart Item Meta */
.cart-item-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
}

.meta-item i {
    color: #1A699C;
    font-size: 16px;
}

/* Cart Item Footer */
.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 2px dashed #f0f0f0;
    margin-top: auto;
}

.item-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-label {
    font-size: 12px;
    color: #6c757d;
}

.price-value {
    font-size: 18px;
    color: #1A699C;
    font-weight: bold;
}

/* Item Quantity Controls */
.item-quantity {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 5px;
    gap: 5px;
}

.qty-btn {
    background: #FFC525;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #ffed4e;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 197, 37, 0.3);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-display {
    width: 45px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* Item Total Price */
.item-total-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.total-label {
    font-size: 12px;
    color: #fff;
}

.total-value {
    font-size: 20px;
    color: #28a745;
    font-weight: bold;
}

/* ===================================
   Order Column (Sidebar)
   =================================== */

.order-column {
    position: relative;
}

.order-summary-sticky {
    position: static;
    width: 100%;
    margin-bottom: 30px;
}

/* Order Summary Card */
.order-summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #FFC525;
    max-width: 100%;
    width: 100%;
}

.summary-title {
    font-size: 22px;
    color: #333;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 3px solid #FFC525;
}

.summary-title i {
    color: #1A699C;
    font-size: 24px;
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.summary-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.summary-label i {
    color: #1A699C;
    font-size: 18px;
}

.summary-value {
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

.summary-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #FFC525 50%, transparent 100%);
    margin: 10px 0;
}

.summary-total {
    background: linear-gradient(135deg, #1A699C 0%, #0D659C 100%);
    padding: 18px !important;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 6px 20px rgba(26, 105, 156, 0.3);
}

.summary-total .summary-label,
.summary-total .summary-value {
    color: white !important;
}

.summary-total .summary-label i {
    color: #FFC525 !important;
}

.summary-total .summary-value {
    font-size: 24px !important;
}

.summary-info {
    margin-top: 15px;
    padding: 12px;
    background: #e7f3ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #1A699C;
}

.summary-info i {
    color: #1A699C;
    font-size: 18px;
}

/* ===================================
   Order Form
   =================================== */

.order-form-wrapper {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.order-form-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f0f0f0;
}

.form-title {
    font-size: 26px;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-title i {
    color: #1A699C;
    font-size: 28px;
}

/* Modern Order Form */
.modern-order-form {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

/* Form Section */
.form-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-section:hover {
    border-color: #1A699C;
    box-shadow: 0 4px 15px rgba(26, 105, 156, 0.1);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.form-section-header i {
    color: #1A699C;
    font-size: 24px;
}

.form-section-header h4 {
    margin: 0;
    font-size: 20px;
    color: #333;
    font-weight: bold;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

/* Form Label */
.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.form-label i {
    color: #1A699C;
    font-size: 16px;
}

.required-mark {
    color: #ff6b6b;
    font-weight: bold;
}

/* Form Input */
.form-input {
    padding: 14px 18px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Hama', sans-serif;
    transition: all 0.3s ease;
    background: white;
    direction: rtl;
}

/* Custom Select Dropdown Styles */
.form-input[type="select"],
.form-input[role="combobox"],
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 16px;
    padding-left: 45px;
    cursor: pointer;
    position: relative;
}

.form-input[type="select"]:focus,
.form-input[role="combobox"]:focus,
select.form-input:focus {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A699C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

.form-input:focus {
    outline: none;
    border-color: #1A699C;
    box-shadow: 0 0 0 4px rgba(26, 105, 156, 0.1);
}

.form-input::placeholder {
    color: #adb5bd;
}

/* Form Textarea */
.form-textarea {
    padding: 14px 18px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Hama', sans-serif;
    transition: all 0.3s ease;
    background: white;
    resize: vertical;
    min-height: 100px;
    direction: rtl;
}

.form-textarea:focus {
    outline: none;
    border-color: #1A699C;
    box-shadow: 0 0 0 4px rgba(26, 105, 156, 0.1);
}

.form-textarea::placeholder {
    color: #adb5bd;
}

/* ===================================
   Shipping Methods
   =================================== */

.shipping-methods-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shipping-method-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.shipping-method-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shipping-card-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.shipping-method-card:hover .shipping-card-content {
    border-color: #1A699C;
    box-shadow: 0 4px 15px rgba(26, 105, 156, 0.15);
    transform: translateY(-2px);
}

.shipping-method-card input[type="radio"]:checked ~ .shipping-card-content {
    border-color: #1A699C;
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    box-shadow: 0 6px 20px rgba(26, 105, 156, 0.2);
}

.shipping-method-card input[type="radio"]:checked ~ .radio-check {
    opacity: 1;
}

.shipping-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1A699C 0%, #0D659C 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(26, 105, 156, 0.3);
}

.shipping-details {
    flex: 1;
}

.shipping-name {
    font-size: 17px;
    color: #333;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.shipping-desc {
    font-size: 13px;
    color: #6c757d;
}

.shipping-price-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #FFC525;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(255, 197, 37, 0.3);
}

.price-amount {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.price-currency {
    font-size: 12px;
    color: #333;
    opacity: 0.8;
}

.radio-check {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.radio-check::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 14px;
}

/* ===================================
   Form Actions
   =================================== */

.form-actions {
    display: flex;
    gap: 15px;
    padding-top: 10px;
}

.btn-submit-order {
    flex: 1;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.btn-submit-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.4);
}

.btn-submit-order:active {
    transform: translateY(-1px);
}

.btn-submit-order i {
    font-size: 20px;
}

.btn-continue-shopping {
    background: #6c757d;
    color: white;
    text-decoration: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-continue-shopping:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

/* ===================================
   Empty Cart
   =================================== */

.empty-cart-container {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.empty-cart-content {
    text-align: center;
    max-width: 500px;
}

.empty-cart-icon {
    font-size: 120px;
    color: #dee2e6;
    margin-bottom: 25px;
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.empty-cart-title {
    font-size: 32px;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: bold;
}

.empty-cart-text {
    font-size: 18px;
    color: #6c757d;
    margin: 0 0 35px 0;
}

.btn-start-shopping {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #1A699C 0%, #0D659C 100%);
    color: white;
    padding: 18px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(26, 105, 156, 0.3);
}

.btn-start-shopping:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 105, 156, 0.4);
}

.btn-start-shopping i {
    font-size: 20px;
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet */
@media (max-width: 1024px) {
    .cart-content-grid {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    
    .order-summary-sticky {
        position: static;
        margin-bottom: 25px;
        order: 0;
    }
    
    .order-column {
        order: 2;
    }
    
    .cart-items-column {
        order: 1;
    }
    
    .order-form-wrapper {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .cart-page-wrapper {
        padding: 15px;
    }
    
    .cart-page-header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        text-align: center;
    }
    
    .cart-page-title {
        font-size: 24px;
        justify-content: center;
    }
    
    .cart-page-title i {
        font-size: 28px;
    }
    
    .cart-badge {
        padding: 6px 15px;
        font-size: 14px;
    }
    
    /* Cart Item Card Mobile */
    .cart-item-card {
        flex-direction: column;
        padding: 15px;
    }
    
    .cart-item-image {
        width: 100%;
        height: 200px;
    }
    
    .cart-item-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .item-price,
    .item-total-price {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .item-quantity {
        justify-content: center;
    }
    
    /* Form Grid Mobile */
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .order-form-wrapper {
        padding: 20px;
    }
    
    /* Shipping Methods Mobile */
    .shipping-card-content {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .shipping-price-tag {
        width: 100%;
    }
    
    /* Form Actions Mobile */
    .form-actions {
        flex-direction: column;
    }
    
    /* Empty Cart Mobile */
    .empty-cart-icon {
        font-size: 80px;
    }
    
    .empty-cart-title {
        font-size: 24px;
    }
    
    .empty-cart-text {
        font-size: 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .cart-items-section {
        padding: 15px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .cart-item-title {
        font-size: 18px;
    }
    
    .form-input,
    .form-textarea {
        padding: 12px 15px;
    }
    
    .btn-submit-order {
        padding: 15px 25px;
        font-size: 16px;
    }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .main-header,
    .mobile-search-bar,
    .mobile-bottom-nav,
    .main-footer,
    .cart-item-remove,
    .form-actions {
        display: none !important;
    }
    
    .cart-page-wrapper {
        max-width: 100%;
        padding: 0;
    }
    
    .cart-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
