@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #113939;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eaeaea;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    height: 50px;
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
}

.lang-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.lang-btn:hover, .lang-btn.active {
    color: #113939;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.info-text {
    text-align: center;
    margin-bottom: 3rem;
    color: #555;
    font-size: 0.95rem;
    font-weight: 400;
}

.auth-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 2.5rem;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.03);
    background-color: #ffffff;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #ffffff;
    color: #1a1a1a;
}

.form-control:focus {
    outline: none;
    border-color: #113939;
    box-shadow: 0 0 0 3px rgba(17, 57, 57, 0.1);
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem;
    background-color: #113939;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    font-size: 1rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn:hover {
    background-color: #0c2a2a;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    background-color: #889c9c;
    cursor: not-allowed;
}

.btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: transparent;
    color: #113939;
    border: 1px solid #113939;
    border-radius: 4px;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: inherit;
}

.btn-outline svg {
    width: 16px;
    height: 16px;
}

.btn-outline:hover {
    background-color: #f4f7f7;
}

.full-width {
    width: 100%;
}

.icon-btn {
    background: none;
    border: none;
    color: #113939;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

.icon-btn svg {
    width: 24px;
    height: 24px;
}

.icon-btn:hover {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #113939;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(25%, -25%);
}

.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.divider::before, .divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #eaeaea;
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.divider span {
    background: #ffffff;
    padding: 0 10px;
    color: #999;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    background: #ffffff;
    color: #333;
    cursor: pointer;
    margin-bottom: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    font-family: inherit;
    transition: background-color 0.2s ease;
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.social-btn:hover {
    background: #fafafa;
}

.page-title {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 300;
    color: #113939;
}

.gallery-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.gallery-pricing {
    font-size: 0.9rem;
    color: #666;
    background: #f9f9f9;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #eaeaea;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    background: #fafafa;
    cursor: zoom-in;
    aspect-ratio: 3/4;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.action-btn {
    background: #ffffff;
    color: #113939;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
}

.action-btn:hover {
    background: #f0f0f0;
}

.action-btn.download-btn {
    background: #113939;
    color: #ffffff;
}

.action-btn.download-btn:hover {
    background: #0c2a2a;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 24px rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #113939;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    word-break: break-all;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    padding: 0.25rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eaeaea;
    background: #fafafa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #113939;
    margin-bottom: 1.5rem;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cart-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hidden {
    display: none !important;
}

.comments-section, .admin-section {
    margin-top: 3rem;
    padding: 2.5rem;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.comment-list {
    margin-top: 2rem;
}

.comment {
    padding: 1.5rem;
    border-bottom: 1px solid #eaeaea;
    background: #ffffff;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.comment strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #113939;
    font-weight: 600;
}

.comment span {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dashboard-card {
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.dashboard-card h3 {
    color: #113939;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.dashboard-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #113939;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transform: translateY(150px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2000;
    font-weight: 500;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #113939;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 3rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #113939;
    cursor: pointer;
    font-weight: 300;
    transition: transform 0.2s ease;
}

#lightbox-close:hover {
    transform: scale(1.1);
}