/* Import Elden Ring-inspired serif font */
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap");

/* Global body styles */
html,
body {
    font-family: "Cinzel", serif;
    margin: 0;
    padding: 0;
    background-color: #0d0d0d;
    /* Dark background */
    color: #e0d6b5;
    /* Pale golden text */
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
    max-width: 100%;
}

/* Header */
header {
    background-color: #0d0d0d;
    border-bottom: 2px solid #a38b2d;
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

header .logo {
    flex: 0 0 auto;
    /* logo ei venita */
}

header .topbar-texts {
    flex: 1;
    /* võtab ülejäänud ruumi */
    text-align: center;
    /* joonda tekst keskele */
    color: #e0d6b5;
}




/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Cinzel", serif;
    font-weight: 700;
    color: #d4c27a;
    /* Elden Ring gold */
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px #000;
}

/* Links */
a {
    color: #a38b2d;
    text-decoration: none;
}

a:hover {
    color: #d4c27a;
    text-shadow: 0 0 5px #a38b2d;
}

/* Top Header */
.container.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    background-color: #111;
    color: #e0d6b5;
    border-bottom: 1px solid #a38b2d;
    max-width: 100%;
    box-sizing: border-box;
}

.logo img {
    height: 80px;
}

/* Top Menu */
.top-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    text-transform: uppercase;
}

.top-menu ul li {
    margin-left: 20px;
}

.top-menu ul li a {
    color: #e0d6b5;
    font-weight: bold;
}

.top-menu ul li a:hover {
    color: #d4c27a;
}

/* Main Menu */
.main-menu {
    background-color: #0d0d0d;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #a38b2d;
    border-bottom: 1px solid #a38b2d;
}

.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* Prevent overflow */
}

.main-menu ul li {
    margin: 0 15px;
}

.main-menu ul li a {
    color: #e0d6b5;
    font-size: 1.1em;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

.main-menu ul li a:hover {
    color: #d4c27a;
    text-shadow: 0 0 5px #a38b2d;
}

/* Hero Section */
.hero {
    width: 100%;
    height: 500px;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-image: url("images/elden-ring-malekith-armor-qrce5ewimjzxpbe4.jpg");
    background-size: cover;
    background-position: center;
}

.hero-content {
    text-align: center;
    background-color: rgba(20, 20, 20, 0.7);
    padding: 25px 40px;
    color: #e0d6b5;
    border: 2px solid #a38b2d;
    border-radius: 8px;
    max-width: 90%;
}

.hero-content h1 {
    font-size: 2.5em;
    margin: 15px 0;
    color: #d4c27a;
}

.hero-content p {
    font-size: 1.2em;
}

/* Four Sections */
.four-sections {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* joonda horisontaalselt keskele */
    align-items: center;
    /* joonda vertikaalselt keskele */
    gap: 20px;
    padding: 60px 5%;
    box-sizing: border-box;
    text-align: center;
    /* tekst keskele */
}

.section {
    flex: 0 1 220px;
    /* fikseeri suurus, et plokid oleksid võrdsed */
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e0d6b5;
    border: 2px solid #a38b2d;
    border-radius: 5px;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    text-shadow: 2px 2px 4px #000;
}

.section h2 {
    margin: 0;
    font-size: 1.5em;
    background-color: rgba(163, 139, 45, 0.65);
    border-radius: 5px;
    padding: 7px 10px;
}


/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 100%;
    box-sizing: border-box;
}

.product {
    background-color: #111;
    text-align: center;
    border-radius: 15px;
    cursor: pointer;
    border: 2px solid #a38b2d;
    transition: transform 0.2s ease-in-out;
}

.product:hover {
    transform: scale(1.03);
    box-shadow: 0 0 10px #a38b2d;
}

.product h3 {
    margin: 10px 0 5px;
    font-size: 1.2em;
    text-transform: uppercase;
    color: #d4c27a;
}

.product p {
    font-size: 1em;
    color: #e0d6b5;
}

.product p.price {
    font-size: 1.5em;
    color: #111;
    font-weight: 700;
    background-color: #a38b2d;
    padding: 10px;
    border-radius: 5px;
}

/* Footer */
footer {
    background-color: #0d0d0d;
    padding: 20px 0;
    color: #e0d6b5;
    font-size: 14px;
    border-top: 2px solid #a38b2d;
}

.footer-section h3 {
    color: #d4c27a;
    text-transform: uppercase;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    background-color: #111;
    color: #a38b2d;
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .four-sections {
        flex-direction: column;
        align-items: center;
    }

    .section {
        width: 90%;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

#topbar .container {
    display: flex;
    flex-direction: column;
    /* stack the lines */
    justify-content: center;
    /* vertical centering */
    align-items: center;
    /* horizontal centering */
    text-align: center;
    /* center text inside */
    height: 100%;
    /* ensure full height */
}

.top-bar-text {
    margin: 0;
    text-align: center;
}

.main-menu ul li {
    position: relative;
}

.main-menu ul li .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #111;
    border: 1px solid #a38b2d;
    z-index: 1000;
}

.main-menu ul li:hover .dropdown {
    display: block;
    /* shows on hover */
}

.main-menu ul li .dropdown li a {
    display: block;
    padding: 10px 15px;
    color: #e0d6b5;
}

.main-menu ul li .dropdown li a:hover {
    background: #222;
    color: #d4c27a;
}


.menu-toggle {
    display: none;
    font-size: 2em;
    cursor: pointer;
    padding: 10px;
    color: #e0d6b5;
}

@media (max-width: 800px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: #1a1a1a;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        z-index: 100;
        border-bottom: 2px solid #a38b2d;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }
}

.merchant-image {
    text-align: center;
    padding: 40px 20px;
}

.merchant-image img {
    max-width: 100%;
    height: auto;
    border: 2px solid #a38b2d;
    border-radius: 8px;
}

.image-caption {
    margin-top: 10px;
    font-size: 0.9em;
    color: #e0d6b5;
}

.intro-image img {
    max-width: 800px;
    /* maksimaalne laius */
    height: auto;
    /* hoiab proportsioonid */
    border-radius: 8px;
    /* soovi korral ümarad nurgad */
    border: 2px solid #a38b2d;
}

.intro-image {
    text-align: center;
    margin: 30px 0;
}

.product-detail-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.product-detail-image-box {
    border: 2px solid #a38b2d;
    border-radius: 15px;
    background: #111;
    padding: 20px;
    width: 400px;
    min-height: 520px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.product-detail-image-box img {
    width: 200%;
    max-width: 360px;
    max-height: 360px;
    object-fit: contain;
    display: block;
    margin-bottom: 20px;
}

.product-detail-image-box .price {
    font-size: 1.5em;
    color: #ffffff;
    font-weight: 700;
    background-color: #a38b2d;
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
    width: 80%;
}

.product-detail-image-box .description {
    font-size: 1em;
    color: #e0d6b5;
    text-align: center;
    width: 90%;
    margin-bottom: 20px;
}

.product-detail-image-box .add-to-cart-btn {
    background-color: #a38b2d;
    color: #ffffff;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    padding: 12px 32px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: auto;
}

.product-detail-image-box .add-to-cart-btn:hover {
    background-color: #d4c27a;
    color: #111;
}

@media (max-width: 500px) {
    .product-detail-image-box {
        width: 90vw;
        min-height: 0;
        padding: 5vw;
    }

    .product-detail-image-box img {
        width: 100%;
        max-width: 80vw;
        max-height: 80vw;
    }
}
.product-title {
  text-align: center;
  color: #d4c27a;
  margin-bottom: 20px;
  margin-top: 20px;
  text-shadow: 1px 1px 3px #000;
}