/*! GamingWorld - Main Styles */

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    width: 100%;
    max-width: 600px;
    padding: 0 2rem;
}

.search-form {
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1rem;
}

.search-field {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    outline: none;
    font-family: var(--gw-font);
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    padding: 0 1rem;
    line-height: 1;
}

.search-results {
    margin-top: 2rem;
    color: #fff;
}

.search-results a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--gw-radius);
    transition: background 0.25s;
}

.search-results a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-results img {
    width: 40px;
    height: 56px;
    object-fit: cover;
    border-radius: 3px;
}

.search-results .result-info {
    flex: 1;
}

.search-results .result-title {
    font-size: 1.4rem;
    color: #fff;
}

.search-results .result-price {
    font-size: 1.3rem;
    color: var(--gw-primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--gw-radius);
    background: var(--gw-bg);
    color: var(--gw-text);
    font-size: 1.3rem;
    font-weight: 500;
    transition: all 0.25s;
}

.pagination .page-numbers.current {
    background: var(--gw-primary);
    color: #fff;
}

.pagination .page-numbers:hover {
    background: var(--gw-primary);
    color: #fff;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1.5rem 0;
    font-size: 1.3rem;
    color: var(--gw-text-light);
}

.breadcrumb a {
    color: var(--gw-text-light);
}

.breadcrumb a:hover {
    color: var(--gw-primary);
}

.breadcrumb .separator {
    margin: 0 0.8rem;
}

/* Product single page */
.single-product .product-gallery {
    position: sticky;
    top: calc(var(--gw-header-height) + 2rem);
}

/* Cart page */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 1rem 0;
    border-bottom: 2px solid var(--gw-border);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gw-text-light);
}

.cart-table td {
    padding: 2rem 0;
    border-bottom: 1px solid var(--gw-border);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea,
select {
    font-family: var(--gw-font);
    font-size: 1.4rem;
    padding: 1rem 1.5rem;
    border: 1px solid var(--gw-border);
    border-radius: var(--gw-radius);
    background: var(--gw-light);
    color: var(--gw-text);
    width: 100%;
    transition: border-color 0.25s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--gw-primary);
}

/* Newsletter form in footer */
.newsletter-form input[type="email"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.3rem;
    padding: 0.8rem 1.2rem;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--gw-primary);
}

/* Notifications */
.gw-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gw-success);
    color: #fff;
    padding: 1.2rem 2rem;
    border-radius: var(--gw-radius);
    font-size: 1.4rem;
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gw-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.gw-notification.error {
    background: var(--gw-error);
}

/* Quick view modal */
.gw-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
}

.gw-modal.active {
    display: flex;
}

.gw-modal-content {
    background: #fff;
    border-radius: var(--gw-radius);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.gw-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gw-dark);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
