/* ============================================= */
/* RESET AND BASE STYLES */
/* ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
a{
    text-decoration: none;
    color: unset;
}
a:-webkit-any-link:focus-visible{
    outline: unset;
}

:root {
    --main-color: #f5d422;
    --second-color: #63656a;
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --success: #4cc9f0;
    --danger: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --border: #dee2e6;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --gradient: linear-gradient(90deg, #f5d422, #7c7d81c7);
    /* --gradient: linear-gradient(135deg, #ffe83d, #63656a); */
    
}

body {
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

/* ============================================= */
/* SIDEBAR STYLES */
/* ============================================= */
.sidebar {
    width: 80px;
    background: #ffffff;
    border-right: 0px solid #e1e1e1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-logo {
    padding: 25px 25px;
    border-bottom: 0px solid #e1e1e1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-logo i {
    font-size: 2.0rem;
    color: var(--main-color);
}

.sidebar-nav {
    flex: 1;
    padding: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 80px 25px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    background: #f8f8f8;
    color: var(--main-color);
    /* border-left-color: var(--main-color); */
}

.nav-item i {
    font-size: 1.5rem;
    width: 30px;
}

.sidebar-footer {
    padding: 20px 25px;
    border-top: 1px solid #e1e1e1;
}

/* ============================================= */
/* MAIN CONTENT AREA */
/* ============================================= */
.main-wrapper {
    flex: 1;
    margin-left: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Header with Search */
.top-header {
    gap: 10px;
    background: #ffffff;
    border-bottom: 1px solid #e1e1e1;
    padding: 10px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-container {
    flex: 1;
    max-width: 2500px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 30px;
    padding: 5px;
    max-width: 2500px;
}

.search-box i {
    padding: 0 15px;
    color: #666;
    font-size: 1.1rem;
}

.search-box input {
    flex: 1;
    border: none;
    background: none;
    padding: 12px 0;
    font-size: 16px;
    outline: none;
}

.search-btn {
    background: var(--gradient);
    background-color: #888;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: var(--second-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 95px;
    justify-content: center;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    /* margin-right: 20px; */
}

.auth-btn {
    padding: 10px 20px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login {
    background: var(--gradient);
    color: white;
    border: none;
}

.btn-login:hover {
    background-color: #63656a;
}

.btn-signup {
    background: var(--gradient);
    color: #fff;
    border: none;
}



.btn-signup:hover {
    background-color: #ddd;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    background: var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.container4 {
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.menutogglebtn {
    padding: 10px;
}

.menu-profile-header {
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* background: linear-gradient(135deg, var(--main-color) 0%, #a0051a 100%); */
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.user-info h2 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.user-info p {
    font-size: 14px;
    color: #666;
}

.menu-dropdown {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: absolute;
    right: 0;
    display: none;
    z-index: 1000;
    min-width: 270px;
}

.menu-dropdown-section {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.menu-section-title {
    font-size: 14px;
    color: #8e8e8e;
    text-align: right;
    margin-bottom: 12px;
    font-weight: 500;
}

.menu-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 8px;
    margin-bottom: 4px;
    padding-right: 10px;
    font-weight: 600;
}

.menu-dropdown-item:hover {
    background-color: #f7f7f7;
}

.menu-dropdown-item i {
    width: 24px;
    margin-left: 12px;
    color: #666;
}

.menu-dropdown-item span {
    flex: 1;
    text-align: right;
    font-size: 16px;
    color: #333;
}

.badge {
    background-color: var(--main-color);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 8px;
}

.menu-convert-business {
    color: var(--main-color);
}

.logout {
    color: var(--main-color);
}

.menu-dropdown.show {
    display: block;
}

/* ============================================= */
/* noon STYLES */
/* ============================================= */
.noon.show {
    align-items: start;
    display: flex;
    /* gap: 20px; */
}
.do{
    height: 55px;
    display: flex;
    align-items: center;
    cursor:pointer;
    padding: 10px;
    color:var(--second-color);
}
.do:hover{
    color: var(--main-color);
}
.noon{
    margin: auto;
    display: none;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    position: fixed;
    z-index: 13000;
    padding: 15px;
}
#box{
    width: 100%;
    position: absolute;
    height: 100%;
    cursor: pointer;
}
#box2{
    display: none;
    align-items: center;
    padding: 10px 25px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    cursor: pointer;
    font-size: 1.4rem;
}
#box2:hover{
    background: #f8f8f8;
    color: var(--main-color);
}
.search-container:focus-within .search-box {
    border-radius: 30px 30px 0 0;
}
.search-container:focus-within #suggestions {
    display: flex;
}

/*my style*/
#suggestions{
    position: absolute;
    width: 100%;
    top: 56px;
    background-color: #eee;
    border-radius: 0 0 30px 30px;
    padding-bottom: 30px;
    z-index: 9999;
    display: none;
    flex-direction: column;
    min-height: 100px;
    pointer-events: auto;
}
.suggest-item{
    cursor: pointer;
    padding: 13.75px 0 16px 50px;
}
.suggest-item:hover{
    background-color: #ccc;
}

/*Chat GPT style*/
/* #suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #f0f0f0;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

#suggestions.show {
    display: flex;
}

.suggest-group {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.suggest-title {
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.suggest-item {
    display: block;
    padding: 8px 10px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: background 0.2s;
}

.suggest-item:hover {
    background: #fff;
} */

  


/* ============================================= */
/* youtube STYLES */
/* ============================================= */
.yout{
    width: 100%;
    height: 550px;
    background:white;
    border-radius: 25px;
    box-shadow: rgb(68, 68, 68);
}
.tube{
    width: 100%;
   margin-top: auto;
   border-radius: 25px;
}

/* ============================================= */
/* MAIN CONTENT STYLES */
/* ============================================= */
.main-content {
    flex: 1;
    padding: 40px;
    background: #f8f8f8;
}

.container {
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #111;
    font-weight: 700;
}

/* Container 1: Image Slider */
.slider-container {
    margin-bottom: 50px;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slider-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.6s ease;
}

.slide {
    width: 33.333%;
    height: 100%;
    position: relative;
    
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    /* background: linear-gradient(var(--main-color), transparent); */
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgb(0 0 0 / 55%), rgb(0 0 0 / 79%));
    color: white;
    padding: 40px;
}

.slide-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.slider-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: white;
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Container 2: Category Grid */
.category-container {
    margin-bottom: 60px;
    margin-top: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 200px;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(transparent, rgb(0 0 0 / 55%), rgb(0 0 0 / 79%));
    object-position: top;
}

.category-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

/* Container 3: What's New */
.whatsnew-container .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e1e1e1;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--main-color);
    background: var(--main-color);
    color: white;
}

.masonry-grid {
    column-count: 4;
    column-gap: 25px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 25px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

.masonry-info {
    padding: 20px;
}

.masonry-info h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #111;
    font-weight: 600;
}

.masonry-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 15px;
}

.pin-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.buy-btn, .like-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.buy-btn {
    background: var(--gradient);
    background-color: #888888;
    color: #fff;
    flex: 1;
    margin-right: 10px;
    justify-content: center;
}

.buy-btn:hover {
    background: var(--second-color);
    color: white;
    /* box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3); */
    /* transform: scale(1.05); */
}

.like-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.like-btn:hover {
    background: #ffebee;
    color: var(--main-color);
}
/* ============================================= */
/* Rules PAGE STYLES */
/* ============================================= */
.rules-list{
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 20px;
    border-radius: 50px;
}
.rule-item{
    padding: 28px;
    color: #484337;
    background-color: #cfcfcf;
    width: 100%;
    transition: 0.3s ease all;
    border-radius: 20px;
    cursor: help;
}
.rule-item:hover{
    color: #000;
}

/* ============================================= */
/* PRODUCT PAGE STYLES */
/* ============================================= */
.app-container {
    display: flex;
    min-height: 100vh;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.product-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(161, 156, 156, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.image-gallery {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    border-radius: 16px 16px 0 0;
}

.gallery-container {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.5s ease;
}

.gallery-slide {
    width: 25%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.slide-1 { background: linear-gradient(135deg, #8B5CF6, #EC4899); }
.slide-2 { background: linear-gradient(135deg, #3B82F6, #06B6D4); }
.slide-3 { background: linear-gradient(135deg, #10B981, #059669); }
.slide-4 { background: linear-gradient(135deg, #F59E0B, #EF4444); }

.gallery-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.nav-dot.active {
    background: white;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    color: #333;
    font-size: 18px;
}
/*Table Start*/
.size-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.size-table th, .size-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.size-table th {
    background-color: white;
    font-weight: bold;
}
/*Table End*/

.gallery-arrow:hover {
    background: white;
}

.arrow-left {
    left: 15px;
}

.arrow-right {
    right: 15px;
}

.details-container {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.details-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.product-info {
    padding: 25px;
}

.product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-price {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.buy-button {
    background: #e60023;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.buy-button:hover {
    background: #c4001c;
}

.payment-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.payment-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.price-details {
    margin: 20px 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.price-row:last-child {
    border-bottom: none;
}

.price-amount {
    font-weight: 700;
    color: #2c3e50;
}

.total-price {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #dee2e6, transparent);
    margin: 20px 0;
}

.complete-order-btn {
    background: var(--gradient);
    background-color: #888888;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.complete-order-btn:hover {
    /* transform: translateY(-2px); */
    /* box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3); */
    background: var(--second-color);
}

.secure-checkout {
    text-align: center;
    margin-top: 15px;
    color: #6c757d;
    font-size: 14px;
}

.secure-checkout i {
    color: #28a745;
    margin-right: 5px;
}
/* ============================================= */
/* Profile PAGE STYLES */
/* ============================================= */

/* Profile Container Styles */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 86vw;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.profile-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-avatar-wrapper {
    position: relative;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 8px 20px rgba(255, 189, 52, 0.3);
}

.profile-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: #28a745;
    border: 3px solid white;
    border-radius: 50%;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: #63656a;
    margin: 0 0 5px 0;
}

.profile-email {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.profile-stat-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.profile-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.profile-stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #63656a 0%, #666 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.profile-stat-content {
    flex: 1;
}

.profile-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #63656a;
    margin-bottom: 5px;
}

.profile-stat-label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.profile-table-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.profile-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #63656a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-section-actions {
    display: flex;
    gap: 10px;
}

.profile-filter-btn,
.profile-export-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 10px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.profile-filter-btn:hover,
.profile-export-btn:hover {
    background: #f8f9fa;
    border-color: #63656a;
}

.profile-table-container {
    overflow-x: auto;
    border-radius: 15px;
    border: 1px solid #f0f0f0;
}

.profile-payment-table {
    width: 100%;
    border-collapse: collapse;
    /* min-width: 800px; */
}

.profile-table-header {
    background: linear-gradient(135deg, #63656a 0%, #666 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border: none;
}

.profile-table-row {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.profile-table-row:hover {
    background: #f8f9fa;
}

.profile-table-row td {
    padding: 15px;
    vertical-align: middle;
}

.profile-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-product-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #63656a;
    font-size: 1.1rem;
}

.profile-product-details {
    flex: 1;
}

.profile-product-name {
    font-weight: 600;
    color: #63656a;
    margin-bottom: 4px;
}

.profile-product-size {
    font-size: 0.8rem;
    color: #666;
}

.profile-table-date-cell,
.profile-table-expiry-cell {
    color: #666;
    font-weight: 500;
}

.profile-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.profile-status-completed {
    background: #e8f5e8;
    color: #28a745;
}

.profile-status-expired {
    background: #ffe6e6;
    color: #dc3545;
}

.profile-download-progress {
    min-width: 120px;
}

.profile-progress-bar {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.profile-progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.profile-download-count {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

.profile-action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.profile-download-btn {
    background: var(--gradient);
    color: white;
}

.profile-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 189, 52, 0.3);
}

.profile-disabled-btn {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

/* Responsive Design */
/* شاشات كبيرة جداً +2000px */
@media (min-width: 2000px) {
    .profile-container {
        max-width: 1600px;
        padding: 40px;
    }
    
    .profile-section {
        padding: 50px;
        border-radius: 30px;
    }
    
    .profile-avatar {
        width: 150px;
        height: 150px;
        font-size: 4rem;
    }
    
    .profile-name {
        font-size: 3rem;
    }
    
    .profile-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
    
    .profile-stat-card {
        padding: 30px;
    }
    
    .profile-stat-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .profile-stat-number {
        font-size: 2.5rem;
    }
}

/* شاشات كبيرة 1600px+ */
@media (min-width: 1600px) {
    .profile-container {
        max-width: 1400px;
    }
    
    .profile-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
    
    .profile-section {
        padding: 40px;
    }
}

/* أجهزة اللابتوب 1200px */
@media (max-width: 1200px) {
    .profile-container {
        max-width: 100%;
        padding: 30px;
    }
    
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .profile-section-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .profile-section-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* أجهزة اللابتوب الصغيرة 992px */
@media (max-width: 992px) {
    #search-container-header{
        display: none;
    }
    #box2{
        display: flex;
    }
    .profile-container {
        padding: 20px;
    }
    
    .profile-section {
        padding: 25px;
        border-radius: 15px;
    }
    
    .profile-header {
        gap: 15px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    .sidebar-logo .logo-text{
        font-size: 11px;
    }
    .profile-name {
        font-size: 1.6rem;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .profile-stat-card {
        padding: 15px;
    }
    
    .profile-table-section {
        padding: 20px;
    }
    
    .profile-section-title {
        font-size: 1.3rem;
    }
    footer{
        margin-bottom: 62.41px;
    }
}

/* الأجهزة اللوحية 768px */
@media (max-width: 768px) {
    .profile-container {
        padding: 15px;
    }
    
    .profile-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .profile-info {
        text-align: center;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .profile-stat-card {
        padding: 20px;
    }
    
    .profile-table-section {
        padding: 15px;
    }
    
    .profile-section-header {
        gap: 15px;
    }
    
    .profile-section-actions {
        justify-content: center;
    }
    
    .profile-filter-btn,
    .profile-export-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    /* تحويل الجدول إلى كروت على الموبايل */
    .profile-mobile-label {
        display: block;
        font-weight: 600;
        color: #63656a;
        margin-bottom: 5px;
        font-size: 0.8rem;
    }
    
    .profile-payment-table thead {
        display: none;
    }
    
    .profile-table-row {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #f0f0f0;
        border-radius: 10px;
        padding: 15px;
        background: white;
    }
    
    .profile-table-row td {
        display: block;
        padding: 10px 0;
        border: none;
    }
    
    .profile-table-row td:not(:last-child) {
        border-bottom: 1px solid #f8f9fa;
    }
    
    .profile-status-text,
    .profile-action-text {
        display: inline;
    }
}

/* الهواتف الصغيرة 480px */
@media (max-width: 480px) {
    .profile-container {
        padding: 10px;
    }
    
    .profile-section {
        padding: 15px;
        border-radius: 12px;
    }

    .auth-btn{
        font-size: 10px;
    }
    .search-btn{
        font-size: 10px;
    }
    
    .profile-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .profile-name {
        font-size: 1.4rem;
    }
    
    .profile-email {
        font-size: 1rem;
    }
    
    .profile-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .profile-stat-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .profile-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .profile-stat-number {
        font-size: 1.5rem;
    }
    
    .profile-section-title {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .profile-section-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .profile-filter-btn,
    .profile-export-btn {
        width: 100%;
        justify-content: center;
    }
    
    .profile-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* إخفاء النصوص الطويلة في الجدول على الموبايل */
    .profile-product-size {
        display: none;
    }
    
    .profile-download-count {
        font-size: 0.7rem;
    }
    
    .profile-status-text,
    .profile-action-text {
        display: none;
    }
    
    .profile-status-badge,
    .profile-action-btn {
        justify-content: center;
    }
}

/* تحسينات إضافية للشاشات الصغيرة جداً */
@media (max-width: 360px) {
    .profile-container {
        padding: 5px;
    }
    
    .profile-section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .profile-name {
        font-size: 1.2rem;
    }
    
    .profile-stat-number {
        font-size: 1.3rem;
    }
    
    .profile-table-row {
        padding: 10px;
    }
}

/* تحسينات للوضع الأفقي على الموبايل */
@media (max-height: 500px) and (orientation: landscape) {
    .profile-container {
        padding: 10px;
    }
    
    .profile-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .profile-header {
        flex-direction: row;
        text-align: left;
    }
    
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-table-container {
        max-height: 200px;
        overflow-y: auto;
    }
}

/* ============================================= */
/* ABOUT PAGE STYLES */
/* ============================================= */
.hero {
    
    /* background: url('../images/aboutHero.webp'); */
    color: white;
    padding: 80px 5%;
    text-align: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left top;
    aspect-ratio: 16/9;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.story-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.story-text {
    flex: 1;
}

.story-text h3 {
    font-size: 24px;
    margin-bottom: 16px;
    /* color: #e60023; */
    color: var(--main-color);
}

.story-text p {
    margin-bottom: 20px;
    color: #555;
}

.story-image {
    width: 400px;
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* background: url('../images/aboutTeam.webp'); */
    background-position-x: -51px;
    background-repeat: no-repeat;
    background-size: cover;

}

.owner-img {
    width: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* background: url('../images/owner.webp'); */
    background-position-x: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    background-repeat: no-repeat;
    background-size: contain;
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.member-image {
    height: 240px;
    /* background: linear-gradient(135deg, #e60023 0%, #a0051a 100%); */
    background: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 60px;
}

.member-info {
    padding: 24px;
}

.member-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #333;
}

.member-info p {
    color: #777;
    font-size: 16px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    width: 70px;
    height: 70px;
    /* background: #e60023; */
    background: var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 28px;
}

.value-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: #333;
}

.value-card p {
    color: #666;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 60px 5% 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    /* color: #e60023; */
    color: var(--main-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    /* color: #e60023; */
    color: var(--main-color);
}

.copyright {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #aaa;
    font-size: 14px;
}

/* ============================================= */
/* CHECKOUT PAGE STYLES */
/* ============================================= */
.checkout-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.checkout-form {
    flex: 1.5;
    padding: 40px;
    background: #f8f9fa;
}

.order-summary {
    flex: 1;
    padding: 40px;
    background: white;
    border-left: 1px solid #e9ecef;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #667eea;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.required::after {
    content: "*";
    color: #e74c3c;
    margin-right: 4px;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

input:focus, select:focus {
    outline: none;
    /* border-color: #667eea; */
    /* box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); */   
}

.name-row {
    display: flex;
    gap: 15px;
}

.name-row .form-group {
    flex: 1;
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.payment-method {
    flex: 1;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-method.active {
    border-color: #667eea;
    background: #f8f9ff;
}

.payment-method i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.payment-method.credit i {
    color: #667eea;
}

.payment-method.paypal i {
    color: #0070ba;
}

.terms {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #e9ecef;
    margin-top: 20px;
}

.terms p {
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 500;
}

.terms-list {
    list-style: none;
    margin-bottom: 20px;
}

.terms-list li {
    padding: 8px 0;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-list li::before {
    content: "•";
    color: #667eea;
    font-weight: bold;
}

.billing-cycle {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #e9ecef;
    margin-bottom: 25px;
}

.cycle-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cycle-option.active {
    border-color: #667eea;
    background: #f8f9ff;
}

.cycle-price {
    font-weight: 600;
    color: #2c3e50;
}

.save-badge {
    background: #27ae60;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.price-table td {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    color: #6c757d;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-value {
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
}

.complete-order {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.complete-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* ============================================= */
/* RESPONSIVE DESIGN */
/* ============================================= */

@media (max-width: 1200px) {
    .masonry-grid {
        column-count: 3;
    }
    
    .sidebar {
        /* width: 250px; */
    }
    
    .main-wrapper {
        margin-left: 80px;
    }
}
@media (min-width: 992px) {
    .main-wrapper {
        width: calc(100vw - 100px);
    }
}
@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
    
    .sidebar {
        height: auto;
        width: 100%;
        top: unset;
        bottom: 0;
        flex-direction: row;
        z-index: 15000;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left: 0;
        width: calc(100vw);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    .sidebar-logo{
        padding: 10px 25px;
    }
    .sidebar-logo i{
        font-size: 1.8rem;
    }
    .nav-item{
        padding: 10px 15px;
    }
    .nav-item i{
        font-size: 1.4rem;
    }
    .sidebar-nav{
        display: flex;
        justify-content: space-evenly;
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }
    
    .top-header {
        padding: 15px 20px;
    }
    
    .search-container {
        width: 100%;
    }
    
    .search-box {
        max-width: none;
    }
    
    .search-box input {
        width: 0;
    }
    
    .header-actions {
        min-width: 60px;
    }

    .main-content {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .section-filters {
        width: 100%;
        justify-content: center;
    }
    
    .image-slider {
        height: 300px;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .slide-content h3 {
        font-size: 1.5rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .checkout-container {
        flex-direction: column;
    }
    
    .order-summary {
        border-left: none;
        border-top: 1px solid #e9ecef;
    }
    
    .name-row {
        flex-direction: column;
        gap: 0;
    }
    
    .story-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pin-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .buy-btn {
        margin-right: 0;
        width: 100%;
    }
    
    .like-btn {
        width: 100%;
        border-radius: 20px;
    }
}

/* Large screens */
@media (min-width: 1600px) {
    .masonry-grid {
        column-count: 5;
    }
}

@media (min-width: 2000px) {
    .masonry-grid {
        column-count: 6;
    }
}

/* Loading animations */
.product-loaded {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#infinite-scroll-loader {
    text-align: center;
    padding: 40px 20px;
    grid-column: 1 / -1;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #666;
    font-size: 16px;
    font-weight: 600;
}

.loading-spinner i {
    font-size: 20px;
    color: var(--main-color);
}

/* Image Container Styles */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px 0px 0px;
}

.image-placeholder {
    position: relative;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.placeholder-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: shimmer 2s infinite;
}

.placeholder-icon {
    position: relative;
    z-index: 2;
    color: #ccc;
    font-size: 2rem;
}

.image-container img {
    width: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container img.loaded {
    opacity: 1;
}

/* Error state */
.image-placeholder.error {
    background: #ffe6e6;
}

.image-placeholder.error .placeholder-icon {
    color: #ff6b6b;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}