@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* https://i.ibb.co/pBhvvPnJ/Icon-Info-Color-Accent.png */
/* https://i.ibb.co/Hpt5crg8/Icon-Scroll-Color-Accent.png */
/* https://i.ibb.co/y2Q5K4d/Icon-Deposit-Color-Accent.png */

:root {
    --bg-color: #0d0d0d;
    --surface-color: rgba(26, 26, 26, 0.7);
    --border-color: rgba(255, 255, 255, 0.2);
    --text-color: #f0f0f0;
    --accent-color: #e46400; /* Original primary orange */
    --font-family: 'Roboto Condensed', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    margin: 0;
}

.brit-bg {
    background-image: linear-gradient(to bottom, #000000, #F2C66C);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.site-nav { /* Un-hiding the nav */
    font-family: var(--font-family);
    background-color: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin: 0 auto;
}

.nav-brand {
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    font-weight: bold;
}
.nav-link {
    height: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}
.nav-user {
    display: flex; /* Ensures user items are aligned */
    align-items: center;
}

.user-link {
    display: flex;
    gap: 10px;
    padding-right: 20px;
}

.user-avatar {
    height: 32px;
}

.auth-link {
    position: relative;
    padding-bottom: 5px;
    color: #F2C66C;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, rgba(242,198,108,0) 0%, #F2C66C 50%, rgba(242,198,108,0) 100%);
    transition: box-shadow 0.3s ease;
}

.auth-link:hover::after {
    box-shadow: 0 0 8px #F2C66C;
}

.store-container {
    margin-top: 50px;
    padding: 20px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.store-grid-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    font-family: var(--font-family);
}

.product-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    text-align: center;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.special-product {
    position: relative;
    border-color: transparent;
    background-color: rgba(251, 211, 128, 0.1);
}
.special-product:hover {
    border-color: transparent;
}
.most-popular {
    z-index: -1 !important;
}

.corner {
    position: absolute;
    width: 25px;
    height: 25px;
    border-color: #F2C66C;
    border-style: solid;
}
.top-left {
    top: 10px;
    left: 10px;
    border-width: 3px 0 0 3px;
    animation: pulse-top-left 2s infinite ease-in-out;
}
.top-right {
    top: 10px;
    right: 10px;
    border-width: 3px 3px 0 0;
    animation: pulse-top-right 2s infinite ease-in-out;
}
.bottom-left {
    bottom: 10px;
    left: 10px;
    border-width: 0 0 3px 3px;
    animation: pulse-bottom-left 2s infinite ease-in-out;
}
.bottom-right {
    bottom: 10px;
    right: 10px;
    border-width: 0 3px 3px 0;
    animation: pulse-bottom-right 2s infinite ease-in-out;
}

.product-modal-add-to-cart {
    animation: shine 3s linear infinite;
}

.product-modal-subscribe {

    animation: shine 3s linear infinite;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), 0 0 15px var(--accent-color);
    border-color: var(--accent-color);
}

.product-card-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.2);
}
.product-modal-image {
    height: 150px;
}
.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card-image-placeholder { color: #555; }

.product-card-info {
    padding: 20px;
}
.product-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}
.gold-button {
    background: linear-gradient(to bottom, #c9b06a, #a78d3a);
    color: #1a1a1a;
    padding: 10px 20px;
    border-radius: 0;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: var(--font-family);
    text-transform: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
}
.gold-button:span {
    cursor: pointer;
}


.shiny-gold-button {
    background: linear-gradient(
        90deg,
        #fac353 0%,
        #947122 33%,
        #f1df76 66%,
        #f0ac22 100%
    );
    background-size: 200% 100%;
    color: #ffffff;
    padding: 0.6em 1.2em;
    font-weight: bold;
    position: relative;
    animation: shine 3s linear infinite;
    box-shadow: 0 0 10px #FBD380;
    transition: all 0.3s ease;
    overflow: hidden;
}

.shiny-gold-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    transform: translateX(-50%);
    animation: shimmer 2s infinite;
}

.shiny-gold-button:span {
    cursor: pointer;
}

.shiny-gold-button:hover {
    box-shadow: 0 0 20px #FBD380, 0 0 40px #987E42;
    transform: scale(1.02);
}

@keyframes shine {
    0% {
        background-position: 50% 0;
    }
    100% {
        background-position: -50% 0;
    }
}

@keyframes shimmer {
    100% {
        transform: translateX(50%);
    }
}

.product-card:hover .view-details-button {
    background: linear-gradient(to bottom, #d4b96a, #b28f3a);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Spinner Overlay */
.spinner-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
.spinner-icon {
    width: 48px;
    height: 48px;
    border: 5px solid var(--surface-color);
    border-bottom-color: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gradient-text {
    background: linear-gradient(
        90deg,
        #FBD380 0%,
        #987E42 33%,
        #F4E591 66%,
        #FBD380 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    padding: 0.2em 0;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

/* Modal Styles */
#modal {
    backdrop-filter: blur(5px);
    max-width: 1400px;
    margin: 0 auto; /* Center the modal */ 
    height: 100%;
    overflow-y: auto;
}
#modal-content {
    background: var(--surface-color) !important;
    border: 1px solid var(--border-color) !important;
    backdrop-filter: blur(20px);
    max-width: 800px !important;
    overflow-y: scroll;
    padding: 0 200px;
    max-height: 600px;
}
.modal-close-button {
    cursor: pointer;
}

.product-modal-container {
    color: var(--text-color);
}
.product-modal-price {
    color: var(--accent-color);
}

.product-modal-image {
    margin: auto;
}
.action-button {
    font-weight: 700;
    transition: all 0.2s;
}
.action-button.add-to-cart {
    background-color: var(--accent-color);
    color: #fff;
}
.action-button.add-to-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--accent-color);
}
.action-button.gift-confirm {
    background-color: #555;
    color: #fff;
    padding: 5px 10px;
}
.action-button.gift-confirm:hover {
    background-color: var(--accent-color);
}
.action-button.subscribe {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}
.action-button.subscribe:hover {
    background-color: var(--accent-color);
    color: #fff;
}
.gift-input {
    background-color: #111;
    border-color: var(--border-color);
}

@media (max-width: 900px) {
    .store-container {
        padding: 10px 5px;
    }
    .store-grid-container {
        padding: 10px 5px;
    }
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    #modal-content {
        padding: 0 10px;
        max-width: 98vw !important;
    }
}

@media (max-width: 600px) {
    #modal-content {
        background: var(--surface-color) !important;
        border: 1px solid var(--border-color) !important;
        backdrop-filter: blur(20px);
        max-width: 800px !important;
        overflow-y: scroll;
        padding: 0 200px;
        max-height: 300px;
    }
    .nav-brand {
        font-size: 2rem;
        width: 100%;
        text-align: center;
    }
    .nav-brand-container {
        justify-content: space-between;
        width: 100%;
    }
    .site-nav {
        justify-content: space-between;
        width: 100%;
    }
    .nav-link, .auth-link, .user-link {
        padding: 10px 0;
        display: block;
        text-align: center;
    }
    .nav-user {
        width: 100px;
    }
    .content-wrapper {
        margin-top: 1px;
    }
    .store-container, .store-grid-container {
        padding: 5px 2px;
    }
    .product-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .product-card-info {
        padding: 10px 5px;
    }
    .product-card-title {
        font-size: 1.1rem;
    }
    #modal-content {
        padding: 10px;
        max-width: 100vw !important;
        max-height: 90vh;
    }
    #modal {
        padding: 10px;
        max-width: 100vw;
    }
    .product-modal-image {
        height: 90px;
    }
    #modal-content{
        position: fixed;
        top: 60px;
        padding: 20px;
        width: 100%;
        height: 100%;
        
        z-index: 1000;
    }

}

@keyframes pulse-top-left {
    50% { top: 5px; left: 5px; }
}
@keyframes pulse-top-right {
    50% { top: 5px; right: 5px; }
}
@keyframes pulse-bottom-left {
    50% { bottom: 5px; left: 5px; }
}
@keyframes pulse-bottom-right {
    50% { bottom: 5px; right: 5px; }
}