:root {
  /* Base golden color */
  --gold-dark:  #a57a1c;
  --gold-base:  #d4af37;
  --gold-light: #ffe9a9;
  --gold-highlight: #fff7d1; 
  --gold-stop-1: #ccab85; /* 0%   */
  --gold-stop-2: #f9f1d3; /* 50%  - highlight */
  --gold-stop-3: #dbc6a5; /* 100% */
  --gold-main-1: #d9b36c;

  /* Derived shades for shiny effect */
  --gold-dark-1: #b38b46;      /* darker edge */
  --gold-light-1: #f3e0b4;     /* soft light */
  --gold-highlight-1: #fff9e5; /* bright shine */
  --gold-stop-4: #ccab85; /* 0%   */
  --gold-stop-5: #f9f1d3; /* 50%  */
  --gold-stop-6: #dbc6a5; /* 100% */
}

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Libre Baskerville', serif;
            background: #ffffff;
            color: #000;
            min-height: 100vh;
        }

        /*nav {*/
        /*    display: flex;*/
        /*    justify-content: space-between;*/
        /*    align-items: center;*/
        /*    background: #fff;*/
        /*    padding: 15px 50px;*/
        /*    font-size: 16px;*/
        /*    position: relative;*/
        /*    box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
        /*}*/

        /*.nav-logo {*/
        /*    display: flex;*/
        /*    align-items: center;*/
        /*}*/

        /*.nav-logo img {*/
        /*    height: 50px;*/
        /*    width: auto;*/
        /*    object-fit: contain;*/
        /*}*/

        /*.nav-menu {*/
        /*    display: flex;*/
        /*    align-items: center;*/
        /*    gap: 25px;*/
        /*}*/

        /*.nav-menu a {*/
        /*    text-decoration: none;*/
        /*    color: #000;*/
        /*    font-weight: 500;*/
        /*    transition: color 0.3s ease;*/
        /*}*/

        /*.nav-menu a:hover {*/
        /*    color: #8B4513;*/
        /*    text-decoration: underline;*/
        /*}*/

        /*.nav-dropdown {*/
        /*    position: relative;*/
        /*    display: inline-block;*/
        /*}*/

        /*.nav-dropbtn {*/
        /*    text-decoration: none;*/
        /*    color: #000;*/
        /*    font-weight: 500;*/
        /*    cursor: pointer;*/
        /*    transition: color 0.3s ease;*/
        /*}*/

        /*.nav-dropbtn:hover {*/
        /*    color: #8B4513;*/
        /*}*/

        /*.nav-dropdown-content {*/
        /*    display: none;*/
        /*    position: absolute;*/
        /*    background-color: #fff;*/
        /*    min-width: 160px;*/
        /*    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);*/
        /*    z-index: 1000;*/
        /*    border-radius: 4px;*/
        /*    overflow: hidden;*/
        /*    top: 100%;*/
        /*    right: 0;*/
        /*}*/

        /*.nav-dropdown-content a {*/
        /*    color: #000;*/
        /*    padding: 12px 16px;*/
        /*    text-decoration: none;*/
        /*    display: block;*/
        /*    transition: background-color 0.3s ease;*/
        /*}*/

        /*.nav-dropdown-content a:hover {*/
        /*    background-color: #f8f5f0;*/
        /*    color: #8B4513;*/
        /*}*/

        /*.nav-dropdown:hover .nav-dropdown-content {*/
        /*    display: block;*/
        /*}*/

        /*.mobile-menu-toggle {*/
        /*    display: none;*/
        /*    flex-direction: column;*/
        /*    cursor: pointer;*/
        /*    padding: 5px;*/
        /*}*/

        /*.mobile-menu-toggle span {*/
        /*    width: 25px;*/
        /*    height: 3px;*/
        /*    background-color: #000;*/
        /*    margin: 3px 0;*/
        /*    transition: 0.3s;*/
        /*    border-radius: 2px;*/
        /*}*/

        /*.mobile-menu {*/
        /*    display: none;*/
        /*    position: fixed;*/
        /*    top: 0;*/
        /*    left: 0;*/
        /*    width: 100%;*/
        /*    height: 100%;*/
        /*    background: rgba(0,0,0,0.9);*/
        /*    z-index: 9999;*/
        /*}*/

        /*.mobile-menu-content {*/
        /*    position: absolute;*/
        /*    top: 50%;*/
        /*    left: 50%;*/
        /*    transform: translate(-50%, -50%);*/
        /*    text-align: center;*/
        /*}*/

        /*.mobile-menu-content a {*/
        /*    display: block;*/
        /*    color: #fff;*/
        /*    text-decoration: none;*/
        /*    font-size: 24px;*/
        /*    margin: 20px 0;*/
        /*    transition: color 0.3s ease;*/
        /*}*/

        /*.mobile-menu-content a:hover {*/
        /*    color: #8B4513;*/
        /*}*/

        /*.mobile-menu-close {*/
        /*    position: absolute;*/
        /*    top: 30px;*/
        /*    right: 30px;*/
        /*    color: #fff;*/
        /*    font-size: 30px;*/
        /*    cursor: pointer;*/
        /*}*/

        /*.mobile-dropdown {*/
        /*    margin: 10px 0;*/
        /*}*/

        /*.mobile-dropdown-title {*/
        /*    color: #8B4513;*/
        /*    font-size: 20px;*/
        /*    margin-bottom: 10px;*/
        /*    cursor: pointer;*/
        /*}*/

        /*.mobile-dropdown-content {*/
        /*    display: none;*/
        /*}*/

        /*.mobile-dropdown-content a {*/
        /*    font-size: 18px;*/
        /*    margin: 8px 0;*/
        /*    color: #ccc;*/
        /*}*/

        /*.mobile-dropdown.active .mobile-dropdown-content {*/
        /*    display: block;*/
        /*}*/

        /*.mobile-menu-toggle.active span:nth-child(1) {*/
        /*    transform: rotate(-45deg) translate(-5px, 6px);*/
        /*}*/

        /*.mobile-menu-toggle.active span:nth-child(2) {*/
        /*    opacity: 0;*/
        /*}*/

        /*.mobile-menu-toggle.active span:nth-child(3) {*/
        /*    transform: rotate(45deg) translate(-5px, -6px);*/
        /*}*/

        .hero {
            background: url(images/book_bg2.jpg) no-repeat center/cover;
            height: 220px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: rgb(9, 9, 9);
            font-size: 42px;
            font-family: 'Playfair Display', serif;
            letter-spacing: 2px;
            text-align: center;
        }

        .hero-text {
            display: inline-block;
            position: relative;
        }

        .hero-underline {
            display: block;
            margin: 2px auto 0 auto;
            width: 180px; 
            height: 80px;
        }

        .book-shop {
            max-width: 1200px;
            margin: 60px auto;
            padding: 0 20px;
        }

        .books-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 40px;
            margin-bottom: 60px;
        }

        .book-card {
            text-align: center;
            background: white;
            border: 2px solid #070707;
            border-radius: 0;
            padding: 20px;
            box-shadow: none;
            transition: transform 0.3s, box-shadow 0.3s;
            max-width: 300px;
            margin: 0 auto;
            cursor: pointer;
        }

        .book-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .book-cover {
            width: 250px;
            height: 280px;
            margin: 0 auto 20px;
            border-radius: 0;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            border: 1px solid #ddd;
        }

        .book-title {
            font-size: 20px;
            color: #333;
            margin-bottom: 20px;
            font-weight: normal;
            font-family: 'Libre Baskerville', serif;
        }

        .rating-price {
            border: 2px solid #8B4513;
            padding: 15px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            margin-top: 20px;
        }

        .stars {
            display: flex;
            gap: 5px;
        }

        .star {
            color: linear-gradient(
    135deg,
    var(--gold-stop-1) 0%,
    var(--gold-stop-2) 50%,
    var(--gold-stop-3) 100%
  ); 
  
            font-size: 18px;
        }

        .price {
            background: transparent;
            padding: 0;
            border-radius: 0;
            font-size: 16px;
            color: #333;
            border: none;
            font-family: 'Libre Baskerville', serif;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.6);
            animation: fadeIn 0.3s;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-content {
            background-color: #fefefe;
            margin: 2% auto;
            padding: 0;
            border-radius: 10px;
            width: 90%;
            max-width: 900px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            animation: slideIn 0.3s;
        }

        @keyframes slideIn {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .modal-header {
            background: #862033;
            color: white;
            padding: 20px;
            border-radius: 10px 10px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h2 {
            margin: 0;
            font-family: 'Playfair Display', serif;
        }

        .close {
            color: white;
            font-size: 35px;
            font-weight: bold;
            cursor: pointer;
            line-height: 1;
            transition: color 0.3s;
        }

        .close:hover {
            color: #ffd4d4;
        }

        .modal-body {
            padding: 40px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
        }

        .form-group.full-width {
            grid-column: 1 / -1;
        }

        label {
            margin-bottom: 5px;
            color: #555;
            font-weight: 500;
        }

        input, textarea {
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 14px;
            font-family: 'Libre Baskerville', serif;
        }

        input:focus, textarea:focus {
            outline: none;
            border-color: #862033;
        }

        textarea {
            resize: vertical;
            min-height: 80px;
        }

        .summary {
            background: #ffd4d4;
            padding: 20px;
            border-radius: 5px;
            margin: 30px 0 20px 0;
            text-align: center;
            font-weight: bold;
        }

        .checkout-btn {
            width: 100%;
            padding: 15px;
            background: #862033;
            color: rgb(255, 255, 255);
            border: none;
            border-radius: 5px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: background 0.3s;
        }

        .checkout-btn:hover {
            background: #A5806A;
        }

        .cover-1 { 
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 24px;
            text-align: center;
            padding: 10px;
        }
        .cover-2 { 
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 18px;
            text-align: center;
            padding: 10px;
        }
        .cover-3 { 
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 24px;
            text-align: center;
            padding: 10px;
        }
        .cover-4 { 
            background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 18px;
            text-align: center;
            padding: 10px;
        }
        .cover-5 { 
            background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 18px;
            text-align: center;
            padding: 10px;
        }
        .cover-6 { 
            background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 18px;
            text-align: center;
            padding: 10px;
        }

        footer {
            background: url(images/footer_bg.jpg) no-repeat center/cover;
            padding: 40px 80px;
            min-height: 280px;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            font-size: 14px;
            color: #090909;
            position: relative;
            z-index: 1;
            gap: 20px;
        }

        footer h4 {
            font-family: 'Playfair Display', serif;
            margin-bottom: 10px;
            color: #0e0e0e;
            font-size: 19px;
        }

        .social a {
            display: block;
            color: #080808;
            text-decoration: none;
            margin: 15px 0;
        }

        .social a:hover {
            text-decoration: underline;
        }

        @media (max-width: 1024px) {
            nav {
                padding: 15px 30px;
            }

            .books-grid {
                gap: 30px;
            }
        }

        @media (max-width: 768px) {
            .book-shop{
                margin-top: 60px;
            }
            nav {
                padding: 15px 20px;
            }

            .nav-menu {
                display: none;
            }

            .mobile-menu-toggle {
                display: flex;
            }

            .hero {
                height: 150px;
                font-size: 28px;
            }

            .hero-underline {
                width: 120px;
                height: 60px;
            }

            .books-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 25px;
            }

            .book-card {
                max-width: 100%;
            }

            .book-cover {
                width: 100%;
                height: 250px;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .modal-body {
                padding: 20px;
            }

            footer {
                grid-template-columns: repeat(2, 1fr);
                padding: 40px 20px;
            }
        }

        @media (max-width: 480px) {
            nav {
                padding: 10px 15px;
            }

            .nav-logo img {
                height: 40px;
            }

            .hero {
                height: 120px;
                font-size: 22px;
            }

            .hero-underline {
                width: 100px;
                height: 50px;
            }

            .books-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .book-cover {
                height: 280px;
            }

            .modal-content {
                width: 95%;
            }

            .modal-body {
                padding: 15px;
            }

            footer {
                grid-template-columns: 1fr;
                padding: 20px 15px;
                text-align: center;
            }
        }