/* Basic Reset & Typography */
        body {
            margin: 0;
            font-family: 'Inter', sans-serif; /* Using Inter for a clean look */
            background-color: #f4f4f4; /* Light gray background */
            color: #282828; /* Dark charcoal text */
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

video, #captured-image {
      width: 100%;
      height: 100%;
      border-radius: 12px;
      background: #000;
      object-fit: cover;
    }
    video {
      transform: scaleX(-1);
    }
    .oval-guide {
      position: relative;
      top: 80%;
      left: 50%;]
      padding-top:30% !important;
      transform: translate(-50%, -50%);
      width: 140px;
      height: 210px;
      border: 2px dashed #ffffffcc;
      border-radius: 50% / 60%;
      pointer-events: none;
      box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.3);
    }
    .buttons {
      display: flex;
      gap: 12px;
    }
    .button {
      padding: 0px 20px;
      border: none;
      border-radius: 8px;
      background: #4CAF50;
      color: white;
      cursor: pointer;
      font-size: 16px;
    }
    .button:hover {
     background: #45a049;
    }
    #captured-image {
      display: none;
    }
    /*.face-search-modal-content .loading::after {
      content: 'Loading camera...';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 20px;
      color: #555;
      background: rgba(255, 255, 255, 0.9);
      padding: 10px 20px;
      border-radius: 8px;
      z-index: 9999;
    }*/

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

        /* Utility Classes */
        .container {
            max-width: 98%; /*1200px;*/
            margin: 0 auto;
            padding: 20px;
            box-sizing: border-box; /* Include padding in element's total width and height */
        }

        .flex-center {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Header */
        header {
            background-color: transparent; /* No background color */
            color: #fff;
            padding: 20px; /* Adjusted padding for better spacing */
            text-align: center;
            /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            border-bottom-left-radius: 4px; /* Reduced border-radius */
            /*border-bottom-right-radius: 4px; /* Reduced border-radius */
            background-color: #22529a; /* Fallback for header */
            display: flex;
            justify-content: space-between; /* Space out logo and user button */
            align-items: center;

        }

        header .logo-placeholder {
            width: 150px; /* Adjust size as needed */
            height: 50px; /* Adjust size as needed */
            /*background-color: #FF8C00; /* Orange for logo */
            color: #282828; /* Dark text for logo */
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.5em;
            font-weight: 700;
            margin-top:8px;
            /*border-radius: 4px; /* Reduced border-radius */
            /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);*/
        }

        header img {
            width:100%;
        }

        header .logo-placeholder span {
            color: #282828; /* Ensure text is dark */
        }

        header .user-button {
            background-color: #D0D0D0; /* Subtle light grey */
            color: #282828; /* Dark text for contrast */
            border: none;
            padding: 10px 15px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.9em;
            font-weight: 600;
            transition: background-color 0.2s ease, transform 0.1s ease;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        header .user-button:hover {
            background-color: #E8E8E8;
            transform: translateY(-2px);
        }

        header .user-button.logged-in {
            background-color: #4CAF50; /* Green for logged in */
            color: #fff;
        }

        header .user-button.logged-in:hover {
            background-color: #45a049;
        }

        footer {
            text-align:center;
        }

        footer p{
            font-size:14px;
        }

        footer a{
            text-decoration: none;
            color:#45a049;
        }

 /* Gallery Info Section */
        .gallery-info-section {
            background-color: #fff;
            padding: 20px;
            margin-top: 20px;
            border-radius: 4px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
            text-align: center;
        }
        .gallery-info-section h2 {
            font-size: 2em;
            margin-top: 0;
            margin-bottom: 1px;
            color: #282828;
        }
        .gallery-info-section p {
            font-size: 1em;
            color: #555;
            margin: 5px 0;
        }

        .gallery-info-section p { font-size:12px; color:#383838; }

        /* Search Section */
        .search-section {
            background-color: #fff;
            padding: 20px;
            margin-top: 20px;
            border-radius: 4px; /* Reduced border-radius */
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
            gap: 15px;
            align-items: center;
            width:700px;
        }


        .search-section input[type="text"] {
            width: 100%;
            max-width: 400px;
            padding: 10px 15px;
            border: 1px solid #ccc;
            border-radius: 4px; /* Reduced border-radius */
            font-size: 1em;
            box-sizing: border-box;
            float:right;
        }

        .search-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
            justify-content: right;
            width: 100%;
        }

        .search-buttons button {
            background-color: #4A4A4A;
            color: #fff;
            border: none;
            padding: 12px 20px;
            border-radius: 4px; /* Reduced border-radius */
            cursor: pointer;
            font-size: 1em;
            font-weight: 600;
            transition: background-color 0.2s ease, transform 0.1s ease;
            flex-grow: 1; /* Allow buttons to grow */
            max-width: 180px; /* Limit individual button width */
            box-sizing: border-box;
        }

        .search-buttons button:hover {
            background-color: #606060;
            transform: translateY(-2px);
        }


        /* Gallery Grid */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            padding: 40px 0;
        }

        /* Photo Card */
        .photo-card {
            background-color: #ffffff; /* White card background */
            border: 1px solid #e0e0e0; /* Light gray border */
            border-radius: 4px; /* Reduced border-radius */
            overflow: hidden;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            position: relative; /* For overlay positioning */
        }

        .photo-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }

        .photo-card-thumbnail-wrapper {
            position: relative;
            overflow: hidden;
            border-top-left-radius: 4px; /* Reduced border-radius */
            border-top-right-radius: 4px; /* Reduced border-radius */
            width: 100%; /* Ensure it takes full width of card */
            height: 300px; /* Fixed height for consistency */
            cursor: pointer; /* Make wrapper clickable for preview */
        }

        .photo-card img {
            width: 100%;
            height: 100%; /* Occupy full wrapper height */
            object-fit: cover; /* Maintain aspect ratio and cover area */
            transition: transform 0.3s ease;
        }

        .photo-card-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /*background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
            display: flex;
            flex-direction: column; /* Stack buttons in a column */
            align-items: flex-end; /* Align to the right */
            justify-content: flex-end; /* Align to the bottom */
            padding: 10px; /* Padding from edges */
            box-sizing: border-box;
            border-top-left-radius: 4px;
            border-top-right-radius: 4px;
            /* Buttons are always visible now, no opacity/pointer-events change on hover */
        }

        .photo-card-overlay button {
            background-color: #D0D0D0; /* Subtle light grey */
            color: #282828; /* Dark text for contrast */
            border: none;
            width: 45px; /* Square button */
            height: 45px; /* Square button */
            border-radius: 4px; /* Reduced border-radius */
            cursor: pointer;
            font-size: 1.2em; /* Icon size */
            font-weight: 600;
            transition: background-color 0.2s ease, transform 0.1s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0; /* Prevent shrinking */
            margin-bottom: 5px; /* Space between buttons */
        }

        .photo-card-overlay button:last-child {
            margin-bottom: 0; /* No margin for the last button */
        }

        .photo-card-overlay button:hover:not(:disabled) {
            background-color: #E8E8E8; /* Lighter grey on hover */
            transform: translateY(-2px);
        }

        .photo-card-overlay button.add-to-cart-overlay-btn:disabled {
            background-color: #ccc;
            color: #666;
            cursor: not-allowed;
            opacity: 0.8;
            transform: none;
        }

        /* Removed .photo-card-info as its content is moved to overlay */
        .photo-card-info {
            display: none; /* Hide if no content, or remove entirely if always empty */
        }


        /* Lightbox */
        .lightbox-overlay {
            display: none; /* Hidden by default */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 0; /* Removed padding from overlay */
        }

        .lightbox-content {
            background-color: #fff;
            padding: 20px; /* Base padding */
            border-radius: 4px; /* Reduced border-radius */
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
            width: 90%; /* Changed to 90% */
            max-width: 900px; /* Wider lightbox */
            display: flex;
            flex-direction: column;
            gap: 15px;
            position: relative;
            max-height: 95vh;
            justify-content: center; /* Center content vertically */
            align-items: center; /* Center content horizontally */
            box-sizing: border-box; /* Crucial for correct width calculation */
        }

        .lightbox-image-container { /* New container for image and overlaid button */
            position: relative;
            width: 100%; /* Take full width of lightbox-content */
            height: auto;
            max-height: 70vh; /* Limit height to prevent image from being too tall */
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden; /* Hide overflow if image is too large */
            border-radius: 4px; /* Reduced border-radius */
            margin-bottom: 20px; /* Space between image and buttons */
        }

        .lightbox-image-container img {
            max-width: 100%; /* Image takes full width of its container */
            max-height: 100%; /* Image takes full height of its container */
            width: auto;
            height: auto;
            object-fit: contain; /* Ensure image fits while maintaining aspect ratio */
            border-radius: 4px; /* Reduced border-radius */
        }

        .lightbox-actions { /* New container for prev/next and add to cart buttons */
            display: flex;
            gap: 10px;
            align-items: center;
            justify-content: center;
            width: 100%; /* Take full width */
            flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
        }

        .lightbox-add-to-cart-btn-in-actions { /* Style for add to cart button in new actions group */
            background-color: #4A4A4A; /* Dark charcoal */
            color: #fff;
            border: none;
            padding: 15px 20px;
            border-radius: 4px; /* Reduced border-radius */
            cursor: pointer;
            font-size: 1.1em;
            font-weight: 600;
            transition: background-color 0.2s ease, transform 0.1s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            flex-grow: 1; /* Allow it to grow */
            max-width: 250px; /* Limit max width */
        }

        .lightbox-add-to-cart-btn-in-actions:hover:not(:disabled) {
            background-color: #606060;
            transform: translateY(-2px);
        }

        .lightbox-add-to-cart-btn-in-actions:disabled {
            background-color: #ccc;
            color: #666;
            cursor: not-allowed;
            opacity: 0.8;
            transform: none;
        }

        .lightbox-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: #fff;
            border: none;
            border-radius: 50%; /* Keep circular for 'X' button */
            width: 35px;
            height: 35px;
            cursor: pointer;
            font-size: 1.5em;
            color: #282828; /* Dark charcoal icon */
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        .lightbox-close:hover {
            background-color: #eee;
            color: #000;
        }

        .lightbox-nav-button {
            background-color: #D0D0D0; /* Subtle light grey */
            border: none;
            border-radius: 4px; /* Reduced border-radius */
            width: 50px; /* Make it square and bigger */
            height: 50px; /* Make it square and bigger */
            cursor: pointer;
            font-size: 1.8em; /* Adjusted icon size */
            color: #282828;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            transition: background-color 0.2s ease, transform 0.1s ease;
            flex-shrink: 0; /* Prevent shrinking in flex container */
        }

        .lightbox-nav-button:hover {
            background-color: #E8E8E8;
            transform: translateY(-2px);
        }

        .download-button {
            background-color: #22529a; /* Dark charcoal for floating cart */
            color: #fff;
            border: none;
            border-radius: 4px; /* Reduced border-radius */
            padding: 15px 25px;
            cursor: pointer;
            font-size: 1.1em;
            align-items: center;
            gap: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            font-weight: 600;
            min-width: 150px; /* Ensure button has some width */
            justify-content: center;
            text-decoration: none;
            margin-top:10px;
        }

        /* Floating Cart Button */
        .floating-cart-button {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background-color: #22529a; /* Dark charcoal for floating cart */
            color: #fff;
            border: none;
            border-radius: 4px; /* Reduced border-radius */
            padding: 15px 25px;
            cursor: pointer;
            font-size: 1.1em;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            transition: background-color 0.2s ease, transform 0.1s ease;
            z-index: 999;
            font-weight: 600;
            min-width: 150px; /* Ensure button has some width */
            justify-content: center;
        }

        .floating-cart-button:hover {
            background-color: #4A4A4A; /* Slightly lighter charcoal on hover */
            transform: translateY(-3px);
        }

        .floating-cart-button .cart-icon {
            width: 24px;
            height: 24px;
            fill: currentColor;
        }

        .floating-cart-button .cart-total-items {
            background-color: #D0D0D0; /* Subtle light grey for item count */
            color: #282828; /* Dark text for contrast */
            border-radius: 4px; /* Reduced border-radius */
            padding: 2px 8px;
            font-size: 0.8em;
            font-weight: 700;
            min-width: 20px;
            text-align: center;
        }

        /* Cart Modal */
        .cart-modal-overlay {
            display: none; /* Hidden by default */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1010;
            align-items: center;
            justify-content: center;
            padding: 0; /* Removed padding from overlay to control via content */
        }

        .cart-modal-content {
            background-color: #fff;
            padding: 30px;
            border-radius: 4px; /* Reduced border-radius */
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
            max-width: 600px;
            width: 90%; /* Changed to 90% */
            position: relative;
            max-height: 90vh;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            box-sizing: border-box; /* Crucial for correct width calculation */
        }

        .cart-modal-content h2 {
            font-size: 2em;
            margin-top: 0;
            margin-bottom: 20px;
            color: #282828; /* Dark charcoal text */
            text-align: center;
        }

        .cart-items-container {
            flex-grow: 1;
        }

        .cart-item {
            display: flex;
            flex-direction: column; /* Stack thumbnail and details vertically by default */
            align-items: center; /* Center items within the column */
            gap: 15px;
            padding: 15px 0;
            border-bottom: 1px dashed #e0e0e0; /* Light gray dashed border */
            width: 100%; /* Ensure cart items take full width of container */
            box-sizing: border-box;
        }

        .cart-item:last-child {
            border-bottom: none;
        }

        .cart-item-thumbnail-wrapper {
            position: relative;
            width: 100%; /* Make thumbnail wrapper full width of its parent (.cart-item) */
            height: 160px; /* Adjust height for better proportion */
            border-radius: 4px; /* Reduced border-radius */
            overflow: hidden;
            flex-shrink: 0;
        }

        .cart-item-thumbnail-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 4px; /* Reduced border-radius */
        }

        .cart-item-remove-overlay {
            position: absolute;
            top: 10px; /* Adjust as needed */
            right: 10px; /* Adjust as needed */
            background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white */
            border: none;
            border-radius: 50%; /* Keep circular for 'X' button */
            width: 30px;
            height: 30px;
            cursor: pointer;
            font-size: 1.2em;
            color: #282828; /* Dark charcoal icon */
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            transition: background-color 0.2s ease, color 0.2s ease;
            opacity: 1; /* Always visible */
            pointer-events: auto; /* Always interactive */
        }

        .cart-item-remove-overlay:hover {
            background-color: rgba(255, 255, 255, 0.9);
            color: #000;
        }

        .cart-item-details {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            width: 100%; /* Take full width below thumbnail */
            text-align: center; /* Center the total price */
        }

        .cart-summary {
            padding-top: 20px;
            border-top: 1px solid #e0e0e0; /* Light gray border */
            margin-top: 20px;
            text-align: center;
            display: flex; /* Make buttons flex items */
            flex-direction: column; /* Stack total and buttons */
            gap: 10px; /* Space between total and buttons */
            align-items: flex-end; /* Align to the right */
        }

        .cart-summary .total-amount {
            font-size: 1.5em;
            font-weight: 700;
            color: #282828; /* Dark charcoal text */
            margin-bottom: 0; /* Remove bottom margin here */
            text-align: center;
            margin:0 auto;
        }
        .cart-summary .combo-price-label { /* Styling for combo price label */
            font-size: 0.9em;
            color: #4CAF50; /* Green for combo price */
            font-weight: 600;
            margin-top: -10px; /* Pull it closer to total amount */
            text-align: center;
            width: 100%; /* Ensure it spans full width for alignment */
        }

        .cart-summary .button-group { /* Group for checkout and clear cart buttons */
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: flex-end; /* Align buttons to the right */
            width: 100%; /* Take full width */
        }

        .cart-modal-content .checkout-button,
        .cart-modal-content .clear-cart-btn {
            background-color: #4A4A4A; /* Dark charcoal for buttons */
            color: #fff;
            border: none;
            padding: 15px 20px;
            border-radius: 4px; /* Reduced border-radius */
            cursor: pointer;
            font-size: 1.1em;
            font-weight: 600;
            transition: background-color 0.2s ease, transform 0.1s ease;
            flex-grow: 1; /* Allow buttons to grow */
            max-width: 250px; /* Limit max width */
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .cart-modal-content .checkout-button:hover,
        .cart-modal-content .clear-cart-btn:hover {
            background-color: #606060; /* Slightly lighter charcoal on hover */
            transform: translateY(-2px);
        }

        .cart-modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: #fff;
            border: none;
            border-radius: 50%; /* Keep circular for 'X' button */
            width: 35px;
            height: 35px;
            cursor: pointer;
            font-size: 1.5em;
            color: #282828; /* Dark charcoal icon */
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        .cart-modal-close:hover {
            background-color: #eee;
            color: #000;
        }

        .empty-cart-message {
            text-align: center;
            color: #666;
            padding: 40px 0;
            font-size: 1.1em;
        }

        /* Checkout Modal */
        .checkout-modal-overlay {
            display: none; /* Hidden by default */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1020; /* Higher than cart modal */
            align-items: center;
            justify-content: center;
            padding: 0; /* Removed padding from overlay */
        }

        .checkout-modal-content {
            background-color: #fff;
            padding: 30px;
            border-radius: 4px; /* Reduced border-radius */
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
            max-width: 600px;
            width: 90%; /* Changed to 90% */
            position: relative;
            max-height: 90vh; /* Consistent with cart modal */
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            box-sizing: border-box;
        }
        .checkout-modal-content h2 {
            font-size: 2em;
            margin-top: 0;
            margin-bottom: 20px;
            color: #282828;
            text-align: center;
        }
        .checkout-items-list {
            margin-bottom: 20px;
            width: 100%; /* Ensure list takes full width */
            text-align: left; /* Align text within list items */
        }
        .checkout-items-list p {
            margin: 5px 0;
            font-size: 0.95em;
            color: #333;
        }
        .checkout-summary {
            width: 100%; /* Ensure summary takes full width */
            border-top: 1px solid #e0e0e0;
            padding-top: 20px;
            margin-top: 20px;
            text-align: center;
        }
        .checkout-summary .total-amount {
            font-size: 1.5em;
            font-weight: 700;
            color: #282828;
            margin-bottom: 0;
        }
        .checkout-summary .combo-price-label {
            font-size: 0.9em;
            color: #4CAF50;
            font-weight: 600;
            margin-top: -10px;
        }
        .checkout-actions {
            margin-top: 20px;
            width: 100%;
        }
        .checkout-actions .checkout-button {
            background-color: #4A4A4A;
            color: #fff;
            border: none;
            padding: 15px 20px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 1.1em;
            font-weight: 600;
            transition: background-color 0.2s ease, transform 0.1s ease;
            width: 100%; /* Full width button */
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .checkout-actions .checkout-button:hover {
            background-color: #606060;
            transform: translateY(-2px);
        }



        /* Face Search Modal */
        .face-search-modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1040;
            align-items: center;
            justify-content: center;
            padding: 0;
            box-sizing: border-box;
        }

        .face-search-modal-content {
            background-color: #fff;
            padding: 30px;
            border-radius: 4px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
            max-width: 500px;
            width: 90%;
            position: relative;
            max-height: 100vh;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            box-sizing: border-box;
        }

        .face-search-modal-content h2 {
            font-size: 1.8em;
            margin-top: 0;
            margin-bottom: 20px;
            color: #282828;
        }

        .camera-placeholder {
            width: 100%;
            height: 250px;
            background-color: #eee;
            border: 2px dashed #ccc;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #888;
            font-size: 1.1em;
            margin-bottom: 20px;
        }

        /* Pagination Styles */
        .pagination-controls {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            margin-top: 30px;
            padding-bottom: 30px;
        }

        .pagination-controls button {
            background-color: #4A4A4A;
            color: #fff;
            border: none;
            padding: 10px 15px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.9em;
            font-weight: 600;
            transition: background-color 0.2s ease, transform 0.1s ease;
        }

        .pagination-controls button:hover:not(:disabled) {
            background-color: #606060;
            transform: translateY(-2px);
        }

        .pagination-controls button:disabled {
            background-color: #ccc;
            color: #666;
            cursor: not-allowed;
            opacity: 0.8;
        }

        .page-numbers {
            display: flex;
            gap: 5px;
        }

        .page-numbers button {
            background-color: #D0D0D0; /* Light grey for page numbers */
            color: #282828;
            border: none;
            padding: 8px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.9em;
            font-weight: 600;
            transition: background-color 0.2s ease;
        }

        .page-numbers li {
            background-color: #D0D0D0; /* Light grey for page numbers */
            color: #282828;
            border: none;
            padding: 8px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.9em;
            font-weight: 600;
            transition: background-color 0.2s ease;
            list-style: none;
        }

        .page-numbers button.active {
            background-color: #4A4A4A; /* Active page number in dark charcoal */
            color: #fff;
        }

        .page-numbers li.active {
            background-color: #4A4A4A; /* Active page number in dark charcoal */
            color: #fff;
            text-decoration: none;
        }

        .page-numbers a{
            color:#4A4A4A;
            text-decoration: none;
        }

        .page-numbers .active a{
            color:#fff;
            text-decoration: none;
        }

        .page-numbers button:hover:not(.active) {
            background-color: #E8E8E8;
        }

        .page-numbers li:hover:not(.active) {
            background-color: #E8E8E8;
        }

        /* Responsive adjustments */
        /* Mobile-first approach: default styles are for small screens */

        /* Small mobile screens (adjusting padding for container) */
        @media (max-width: 480px) {
            .container {
                padding: 10px; /* Reduced padding for very small screens */
            }
            .gallery-grid {
                padding: 20px 0; /* Adjust grid padding */
            }
            header .logo-placeholder {
                width: 120px;
                height: 40px;
                font-size: 1.2em;
            }
            .search-section {
                padding: 15px;
                gap: 10px;
            }
            .search-buttons {
                flex-direction: column; /* Stack buttons vertically */
            }
            .search-buttons button {
                max-width: 100%; /* Make buttons full width */
            }
            .photo-card-thumbnail-wrapper {
                height: 200px; /* Slightly smaller height for small cards */
            }
            .photo-card-overlay {
                flex-direction: row; /* Keep overlay buttons in a row for small screens */
                justify-content: flex-end; /* Align to bottom right */
                align-items: flex-end;
                gap: 10px; /* Smaller gap */
            }
            .photo-card-overlay button {
                width: 40px; /* Slightly smaller buttons */
                height: 40px;
                font-size: 1em;
                margin-bottom: 0; /* Remove extra margin for row layout */
            }
            .photo-card-info {
                display: none; /* Ensure original button container is hidden */
            }
            .floating-cart-button {
                bottom: 15px;
                right: 15px;
                padding: 10px 15px;
                min-width: unset;
                font-size: 1em;
            }
            .floating-cart-button .cart-icon {
                width: 20px;
                height: 20px;
            }
            .floating-cart-button .cart-total-items {
                font-size: 0.7em;
                padding: 1px 6px;
            }
            .lightbox-content, .cart-modal-content, .face-search-modal-content, .checkout-modal-content {
                padding: 15px;
                width: calc(100% - 30px); /* Account for padding */
            }
            .cart-modal-content h2, .face-search-modal-content h2, .checkout-modal-content h2 {
                font-size: 1.4em;
                margin-bottom: 15px;
            }
            .cart-item-thumbnail-wrapper {
                height: 200px; /* Smaller height for cart thumbnails */
            }
            .lightbox-close, .cart-modal-close, .checkout-modal-close {
                width: 30px;
                height: 30px;
                font-size: 1.2em;
                top: 10px;
                right: 10px;
            }
            .lightbox-nav-button {
                width: 40px;
                height: 40px;
                font-size: 1.8em;
            }
            /* Adjust lightbox-actions for mobile */
            .lightbox-actions {
                flex-direction: column; /* Stack buttons vertically */
            }
            .lightbox-add-to-cart-btn-in-actions, .lightbox-nav-button {
                width: 100%; /* Make buttons full width */
                max-width: 250px; /* Constrain max width for aesthetics */
            }
            .pagination-controls {
                flex-wrap: wrap; /* Allow pagination buttons to wrap */
                gap: 5px;
            }
            .pagination-controls button {
                padding: 8px 10px;
                font-size: 0.8em;
            }
            .page-numbers button {
                padding: 6px 10px;
            }
            /* Cart summary buttons */
            .cart-summary .button-group {
                flex-direction: column;
                align-items: center;
                gap: 10px;
            }
            .cart-modal-content .checkout-button,
            .cart-modal-content .clear-cart-btn {
                max-width: 100%; /* Full width buttons */
            }
            .cart-summary .total-amount,
            .cart-summary .combo-price-label {
                text-align: center; /* Center total price on mobile */
            }
            /* Checkout modal specific for mobile */
            .checkout-summary .total-amount,
            .checkout-summary .combo-price-label {
                text-align: center;
            }
            .checkout-actions .checkout-button {
                max-width: 100%;
            }

            .oval-guide {
              position: absolute;
              top: 45%;
              left: 50%;
              transform: translate(-50%, -50%);
              width: 150px;
              height: 210px;
              border: 2px dashed #ffffffcc;
              border-radius: 50% / 60%;
              pointer-events: none;
              box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.3);
            }
        }


        /* Tablets (min-width: 768px) */
        @media (min-width: 768px) {
            .container {
                padding: 20px;
            }
            header .logo-placeholder {
                width: 150px;
                height: 50px;
                font-size: 1.5em;
            }
            .search-section {
                flex-direction: row; /* Buttons and input in a row */
                justify-content: center;
                gap: 20px;
            }
            .search-buttons {
                flex-direction: row; /* Buttons in a row */
                justify-content: center;
            }
            .search-buttons button {
                max-width: 150px; /* Limit button width for side-by-side */
            }
            .gallery-grid {
                padding: 40px 0;
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust min for more columns */
            }
            .photo-card-thumbnail-wrapper {
                height: 250px;
            }
            .photo-card-overlay {
                flex-direction: column; /* Revert to column for tablets if needed */
                justify-content: flex-end; /* Align to bottom right */
                align-items: flex-end;
                gap: 15px; /* Standard gap */
            }
            .photo-card-overlay button {
                width: 45px;
                height: 45px;
                font-size: 1.2em;
                margin-bottom: 5px; /* Re-add margin for column layout */
            }
            .photo-card-overlay button:last-child {
                margin-bottom: 0;
            }
            .floating-cart-button {
                bottom: 30px;
                right: 30px;
                padding: 15px 25px;
                min-width: 150px;
                font-size: 1.1em;
            }
            .floating-cart-button .cart-icon {
                width: 24px;
                height: 24px;
            }
            .floating-cart-button .cart-total-items {
                font-size: 0.8em;
                padding: 2px 8px;
            }

            /* Lightbox adjustments for tablets */
            .lightbox-content {
                padding: 30px;
                max-width: 90%; /* Wider lightbox */
                width: 90%; /* Consistent width */
                flex-direction: column; /* Start with column on tablets for easier management */
            }
            .lightbox-image-container {
                max-width: 100%;
                max-height: 70vh;
                margin-bottom: 20px; /* Ensure space for actions */
            }
            .lightbox-actions {
                flex-direction: row; /* Layout buttons in a row */
                gap: 15px; /* Adjust gap */
            }
            .lightbox-add-to-cart-btn-in-actions {
                flex-grow: 1; /* Allow stretching */
                max-width: 250px; /* Limit max width */
            }
            .lightbox-nav-button {
                width: 50px;
                height: 50px;
                font-size: 2.2em;
            }
            .lightbox-close {
                width: 35px;
                height: 35px;
                font-size: 1.5em;
            }
            .lightbox-nav-button.prev, .lightbox-nav-button.next {
                position: static; /* No longer fixed to the viewport */
                transform: none; /* No vertical transform needed */
            }

            /* Cart modal adjustments for tablets */
            .cart-modal-content {
                padding: 30px;
                max-width: 600px;
                width: 90%; /* Consistent width */
            }
            .cart-modal-content h2 {
                font-size: 2em;
            }
            .cart-item {
                flex-direction: row; /* Layout cart items in a row */
                align-items: center;
                justify-content: flex-start;
            }
            .cart-item-thumbnail-wrapper {
                width: 150px; /* Fixed width for row layout */
                height: 100px;
                max-width: none; /* Remove max-width for row layout */
            }
            .cart-item-details {
                text-align: left; /* Align text to left in row layout */
            }
            .cart-summary .button-group {
                flex-direction: row; /* Keep buttons in a row */
                align-items: center;
                justify-content: flex-end;
            }
            .cart-modal-content .checkout-button,
            .cart-modal-content .clear-cart-btn {
                max-width: 250px; /* Max width for each button */
            }
            .cart-summary .total-amount,
            .cart-summary .combo-price-label {
                text-align: center; /* Align total price to right */
            }
            /* Checkout modal specific for tablets */
            .checkout-modal-content {
                max-width: 600px;
                width: 90%;
            }
            .face-search-modal-content {
                max-width: 500px;
                width: 90%;
            }

            .oval-guide {
              position: absolute;
              top: 30%;
              left: 50%;
              transform: translate(-50%, -50%);
              width: 170px;
              height: 240px;
              border: 2px dashed #ffffffcc;
              border-radius: 50% / 60%;
              pointer-events: none;
              box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.3);
            }
        }

        /* Desktops (min-width: 1024px) */
        @media (min-width: 1024px) {
            .gallery-grid {
                grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Optimal columns for desktop */
            }
            .lightbox-content {
                max-width: 900px; /* Wider lightbox on large screens */
                width: 900px; /* Fixed width for desktop for predictability */
            }
            .pagination-controls button {
                padding: 10px 15px;
                font-size: 0.9em;
            }
            .page-numbers button {
                padding: 8px 12px;
            }
            /* Cart modal specific for desktops */
            .cart-modal-content {
                max-width: 600px;
                width: 600px; /* Fixed width for desktop */
            }
            /* Checkout modal specific for desktops */
            .checkout-modal-content {
                max-width: 600px;
                width: 600px;
            }
            .face-search-modal-content {
                max-width: 500px;
                width: 500px;
            }

            .oval-guide {
              position: absolute;
              top: 30%;
              left: 50%;
              transform: translate(-50%, -50%);
              width: 170px;
              height: 240px;
              border: 2px dashed #ffffffcc;
              border-radius: 50% / 60%;
              pointer-events: none;
              box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.3);
            }
        }

.success-text {
  text-align: center;
}
.success-text .star {
  position: absolute;
  -webkit-animation: grow 3s infinite;
  animation: grow 3s infinite;
  fill: var(--theme-color);
  opacity: 0;
}
.success-text .star:nth-child(1) {
  width: 12px;
  height: 12px;
  left: 12px;
  top: 16px;
}
.success-text .star:nth-child(2) {
  width: 18px;
  height: 18px;
  left: 168px;
  top: 84px;
}
.success-text .star:nth-child(3) {
  width: 10px;
  height: 10px;
  left: 32px;
  top: 162px;
}
.success-text .star:nth-child(4) {
  width: 20px;
  height: 20px;
  left: 82px;
  top: -12px;
}
.success-text .star:nth-child(5) {
  width: 14px;
  height: 14px;
  left: 125px;
  top: 162px;
}
.success-text .star:nth-child(6) {
  width: 10px;
  height: 10px;
  left: 16px;
  top: 16px;
}
.success-text .star:nth-child(1) {
  -webkit-animation-delay: 1.5s;
  animation-delay: 1.5s;
}
.success-text .star:nth-child(2) {
  -webkit-animation-delay: 3s;
  animation-delay: 3s;
}
.success-text .star:nth-child(3) {
  -webkit-animation-delay: 4.5s;
  animation-delay: 4.5s;
}
.success-text .star:nth-child(4) {
  -webkit-animation-delay: 6s;
  animation-delay: 6s;
}
.success-text .star:nth-child(5) {
  -webkit-animation-delay: 7.5s;
  animation-delay: 7.5s;
}
.success-text .star:nth-child(6) {
  -webkit-animation-delay: 9s;
  animation-delay: 9s;
}
.success-text .checkmark {
  position: relative;
  padding: 30px;
  -webkit-animation: checkmark 5m cubic-bezier(0.42, 0, 0.275, 1.155) both;
  animation: checkmark 5m cubic-bezier(0.42, 0, 0.275, 1.155) both;
  display: inline-block;
  -webkit-transform: scale(0.8);
  transform: scale(0.8);
  margin: -20px;
}
.success-text .checkmark__check {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  -webkit-transform: translate3d(-50%, -50%, 0);
  transform: translate3d(-50%, -50%, 0);
  fill: white;
}
.success-text .checkmark__background {
  fill: var(--theme-color);
  -webkit-animation: rotate 35s linear both infinite;
  animation: rotate 35s linear both infinite;
}
.success-text i {
  font-size: 50px;
  color: #4ead4e;
}
.success-text h2 {
  margin-top: 10px;
  margin-bottom: 15px;
}
.success-text p {
  font-size: 18px;
  text-transform: capitalize;
}
.success-text.order-fail i {
  color: var(--theme-color);
}

.price-bubble { 
    background-color:#4361ee; 

    padding:5px 10px;
    color:#fff;
    -webkit-border-top-left-radius: 5px;
    -webkit-border-bottom-left-radius: 5px;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-bottomleft: 5px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.price-bubble2 { 
    background-color:#00b4d8; 
    padding:5px 10px;
    color:#fff;
    -webkit-border-top-right-radius: 5px;
    -webkit-border-bottom-right-radius: 5px;
    -moz-border-radius-topright: 5px;
    -moz-border-radius-bottomright: 5px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.s1
{
    font-size:14px;
}

.fa-calendar-days {
    margin-bottom:6px;
}

.price-center
{
    text-align:center;
}



/* Custom styles for the WhatsApp button */
        .whatsapp-float {
            position: fixed; /* Keeps the icon in place when scrolling */
            width: 50px; /* Reduced size (CHANGED) */
            height: 50px; /* Reduced size (CHANGED) */
            bottom: 20px; /* Adjusted distance from the bottom for smaller size (CHANGED) */
            left: 20px; /* Adjusted distance from the left for smaller size (CHANGED) */
            background-color: #25D366; /* WhatsApp green */
            color: #FFF; /* Icon color (white) */
            border-radius: 50%; /* Makes it a perfect circle */
            text-align: center;
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2); /* Adjusted shadow for smaller size (CHANGED) */
            z-index: 999; /* Ensures it stays on top of other content */
            display: flex; /* Use flexbox to center the icon */
            justify-content: center;
            align-items: center;
            text-decoration: none; /* Removes underline from the link */
            transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Smooth hover effect */
        }

        .whatsapp-float:hover {
            transform: scale(1.08); /* Slightly enlarge on hover (ADJUSTED) */
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover (ADJUSTED) */
        }

        .whatsapp-icon {
            width: 30px; /* Reduced icon size inside the circle (CHANGED) */
            height: 30px; /* Reduced icon size inside the circle (CHANGED) */
            /* Using a customer support chat bubble icon as an SVG data URI */
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 2H4c-1.103 0-2 .897-2 2v18l5.333-3.999H20c1.103 0 2-.897 2-2V4c0-1.103-.897-2-2-2zm0 14H6.667L4 18V4h16v12z'/%3E%3Cpath d='M7 9h10v2H7zM7 12h7v2H7z'/%3E%3C/svg%3E");
            background-size: contain; /* Ensures the SVG fits within the element */
            background-repeat: no-repeat;
            background-position: center;
            display: block; /* Ensure the SVG background fills the div */
        }

/* Base button styles */
        .btn {
            display: inline-block;
            padding: 10px 20px;
            font-size: 16px;
            font-weight: bold;
            text-align: center;
            text-decoration: none;
            border-radius: 5px;
            cursor: pointer;
            border: none; /* Remove default border */
            transition: background-color 0.3s ease, color 0.3s ease, transform 0.1s ease;
            gap: 12px;
        }

        .btn:hover {
            transform: translateY(-1px); /* Slight lift on hover */
        }

        .btn:active {
            transform: translateY(0); /* Return to original position on click */
        }

        /* Blue Button */
        .btn-blue {
            background-color: #007bff; /* Primary blue */
            color: #ffffff; /* White text */
        }

        .btn-blue:hover {
            background-color: #0056b3; /* Darker blue on hover */
        }

        /* Grey Button */
        .btn-grey {
            background-color: #6c757d; /* Muted grey */
            color: #ffffff; /* White text */
        }

        .btn-grey:hover {
            background-color: #5a6268; /* Darker grey on hover */
        }

        /* Optional: Styles for disabled buttons */
        .btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

.capture-btn { 
    background-color:#007bff; 
    padding:2px 5px;
    color:#fff;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    border-radius: 7px;
    font-size:; 7px !important;
}

#face-search-modal-overlay {
  display: none; /* default hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 99999; /* make sure it's above cart/checkout/lightbox */
}

.face-search-modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  position: relative;
}